PDA

View Full Version : Preloader on the main SWF instead of a preloader in the child SWF


cyberscience
11-27-2002, 01:33 AM
I'm loading a SWFs onto a main SWF. I know that the preloader from the tutes are made inside the child SWF. How do I make a preloader (what I mean is the bar and the dynamic textfield that shows percentage) IN the main SWF with the bytes from the child SWF.

Jesse
11-27-2002, 04:06 AM
See the Flash 5 Preloader tutorial and the Paths tutorial. You just need to put the animation in the 'bar' clip on your main timeline, and change the paths in the preload script. Of course this will cause problems because you will have to put your looping-load-checking-code on a movieclip in order for it to continue to run while you jump around the main timeline. That's why we use a separate MC for the indicator bar.

cyberscience
11-27-2002, 11:32 AM
How do i make the looping-load-checking-code ?

Jesse
11-27-2002, 01:17 PM
That's the getBytesLoaded / total frame loop in the tutorial.