Posts Tagged ‘actionscript’

Creating a simple Load Indicator / preloader

Here is a handy class to display a simple spinning load indicator / preload animation while your content is loading or transitioning. This demo uses the bit101 minimalcomps to show how flexible and configurable this class is. Use this demo to set up the style for your project, then hit the “copy” button to copy […]

Dynamic Text around an Ellipse

Recently I had to create a dynamic menu that required some text to wrap around an ellipse. Getting the rotation correct involved calculating the angle of the tangent around the ellipse which was a challenge. Also the letter spacing was tricky and I don’t think I have the best solution for this but it seems […]

site launch: GE Memorial Day Emissions

I’ve been a long-time admirer of the work of David McCandless (, and I finally had the chance to build one of his infographics in Flash. The project displays projected CO2 emissions from car journeys on Memorial Day across America. You can choose between 3 region groupings and 3 fuel types. The numbers involved are […]

Men at Work / Kookaburra – new composition

[Edit: (6th May) This case is currently under appeal, so my understanding is that no precedents have been set yet. Also it has been pointed out to me that there are other issues to consider such as qualitative test for copyright and contrary sweat of brow. Any other legal opinions are welcome.] On the 4th […]

Zooming using transform Matrix

Here is a brilliant post ‘Zooming in Flash & Flex’ on how to use the transform Matrix to zoom and rotate DisplayObjects. Daniel Gasienica writes well and has some great examples demonstrating to correct way to apply these transformations to your clips. Using this method saves you messing around with the Point class and localToGlobal […]

Site launch – portfolio site v3

I’ve just launched my new portfolio site. This is v3.0 of, and takes a more minimalist approach to the design than the previous versions. This site is powered by ActionScript3.0 and XML, and uses some fun BitmapData effects. link

IE bug with HTTPS and XML

Here is a great post about how to make sure your XML loaded over HTTPS in Internet Explorer doesn’t fall victim to a nasty bug. If you’re getting Sandbox Security errors but your crossdomain.xml file is set up correctly then you might need to alter the header values in your server response. This really is […]

Site launch – Moonbeam Films

This site for Moonbeam Films went live last week. It is AS3.0, XML controlled and uses the Gaia framework. It also uses the Google Maps API which is very easy to set up and use.

Dragging in Papervision 3D – example

UPDATE 29/09/09: This technique is possibly no longer valid with the latest version of Papervision3D. Here is a small example I put together quickly today to demonstrate how to drag in 3D using Papervision and the InteractiveUtils.getMapCoordAtPointDO3D function. Since my last post on this in December last year, the Papervision getMapCoordAtPointDO3D method returned object’s x […]

Restricting a number to a certain range

Quite often I need to restrict a number to a range with a defined maximum and minimum value. Rather than using if else statements you can do this simply with Math.max and Math.min:  var restricted_value:Number = Math.max(MIN_VALUE, Math.min(MAX_VALUE, value));