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

Actionscript 3 Preloader

Posted: November 13th, 2007 | Author: Idoru | Filed under: Actionscript3, Code, Tutorial | 19 Comments »

Hey,

So recently i've come to a problem, how do i create a preloader for my 
website if i only use Eclipse as development enviornment?
There is no main timeline per se, nor can i choose where to export my assets, 
so after some digging i came up with  this solution:

The main file:

And the preloader file:

Essentially what i'm doing here is instructing the compiler to add a frame
with myPreloader as a factory and calling my main file from it.
Should you have any questions feel free to ask, here is the swf.