Preloader for start fla - (I read the tutorial! :)

Hi!

I just tested this pre-loader tutorial

http://www.kirupa.com/developer/flashcs3/preloader_as3_pg1.htm

and was very impressed! I definately want to use this effect and now I even have the code integrated into a loadImage code.

Anyone know how to use it in the startup load of your whole fla though?

I figure it’s easy enough… like, creating a onLoad (??) function and then just entering the code from the tutorial somehow into that function

// Show Preloader
preloader.visible = true;

// Hide Preloader
preloader.visible = false;

// Get current download progress
var loaded:Number = e.bytesLoaded / e.bytesTotal;

// Send progress info to “preloader” movie clip
preloader.SetProgress(loaded);

(I’m using flash cs3 with AS3, thanks!)