Re: preloader for cs3 by Doccie on Sep 9, 2007 at 7:35:23 pm
This is the one I have been using with AS3. Please note that it is still more than OK to use AS2 if you're working on smaller projects that don't require an Object Oriented Approach.
Re: preloader for cs3 by Doccie on Sep 10, 2007 at 8:37:59 am
Basically, it does the same thing you would do when using AS2.
Instead of creating an empty container clip, it does this for you by instantiating the loader class.
Then, you attach event listeners that let you know when a certain event occurs (the loadProgress for instance, gets called continuously for as long the movie is loading). To these event listeners you attach a function, that gets executed every time the event occurs.
addEventListener(name of the event to listen to, function to execute);
And then you just write the corresponding functions.