Refactoring in FDT 1.5

October 29th, 2007 by Slav

While only FTD3 has fully featured refactoring a simple file operations based refactoring can be found in FTD 1.5 or perhaps even earlier versions.

For some reason it is unchecked by default, but can be found here :

Eclipse > Window > Preferences > FDT > Refactoring > Flash Explorer File Operations Read the rest of this entry »

Posted in FDT, flash | No Comments »

Tiler Class

October 25th, 2007 by Slav

In html is not unusual to have repeating smaller images or “tiles” filling up your background. In fact this blog has one as well.

In flash however, you don’t see this functionality very often. There are several reasons for that :

To determine how many tiles you need to fill up the space , you need to know it’s dimensions. You can only know that once the tile is fully loaded.  Which is fine, you can load one tile, get it’s width and height, then determine how many you need to place vertically and horizontally and at what exact positions. And then all you need to do is to use duplicateMovieClip method to duplicate all the tiles off the first one you loaded. Right ?

Wrong. Due to the security restrictions you can’t duplicate the movieclips containing the assets that have been loaded externally. Fortunately came flash 8 and BitmapData. So you can use draw command to render the rest of the tiles on the stage. Read the rest of this entry »

Posted in AS2, flash | No Comments »

Typewriter effect class (with sound)

October 17th, 2007 by Slav

Probably every flash developer has been at least once in his career asked to do a typewriter effect. So was I…

This class does the effect, with sound. You can either attach the texfield and send the string to be typed in init object, or have object already on the stage and use it’s writeText method. Read the rest of this entry »

Posted in AS2, flash | 1 Comment »