“Be inspired, enjoy your work, keep learning and never forget to play.” — gskinner

Image Sequencer

Posted: March 6th, 2008 | Author: Ivan Valadares | Filed under: Actionscript3, Code, Components, Demo | 3 Comments »

To solve the problem of the image sequence I already know the solution, some time ago me and Pedro did something like this. This time I made two different versions, a class version (project in flex 3) and a component to flash cs3. With this solution, you can keep your images outside the project and manipulate them like a movieClip.

Arguments and Parameters

folder -> images folder.
filename -> first part of filename (ex: image1.jpg ), it should be "image".
type -> extension of the filename (jpg,png).
startImageNum-> first image number.
endImageNum->last Image numer.

For the class (ImageSequencer.as) version use:

For the component version:
Run “ImageSequencer.xmp” to install component. Run flash cs3, go to Windows > Components > Standard Components, drag ImageSequencer to the stage and fill the Parameters.

Methods,Events,Properties:

Flash Component and Example
Class File and Example


Swc Image problems

Posted: March 6th, 2008 | Author: Ivan Valadares | Filed under: Actionscript3, Best Practices | No Comments »

Last month I had to run one image sequence with 100 images, so I create a new movie in flash, put every image in every frame, image1 to frame1, image2 to frame2, etc. It ran ok in flash but when I exported it to flex (SWC format) the problem began. Every time I did some modifications to one of the SWC files in the project it started to delay 15 minutes to build. So be careful with the number of images inside a SWC file, it can be very boring.