Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
ADOBE FLASH: Adobe Flash ForumAdobe Flash TutorialsAdobe Flash Video TutorialsWeb Streaming ForumAdobe Flash

preloader for cs3

Cow Forums : Adobe Flash
preloader for cs3
by zowie repoza on Sep 9, 2007 at 7:23:01 pm

Had a pretty sweet library of preloaders--but I find that now that I've migrated from FlashMX to cs3, none of them work anymore.

Anybody got a good preloader that works in cs3?

Any ole simple loading/percent bar would be kool.

Thanx heapz,
z

Respond to this post   •   Return to posts index

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.

http://pastebin.coconut.se/?id=5552

Kind regards,
Pieter

Respond to this post   •   Return to posts index

Re: preloader for cs3
by zowie repoza on Sep 10, 2007 at 12:19:44 am

Thanx Pieter, I'll give it a shot--though that line of script was surely greek to me . . .

Z ya,
z

Respond to this post   •   Return to posts index


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.

Kind regards,
Pieter

Respond to this post   •   Return to posts index

<< PREVIOUS THREAD   •   VIEW ALL THREADS   •   PRINT   •   NEXT THREAD >>


FORUMSTUTORIALSMAGAZINEDVDsBOOKSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]