This content has been marked as final. Show 5 replies
just use attachMovie() to attach your preload bar to the current page. everything else is the same as whatever tutorial you've checked showing a blank page with a preload bar on it,
I'm loading swfs into a container clip in a main movie. Do you mean to attach the preloader to each swf?
Sorry, I'm still trying to grasp this concept...
attach the preloader to some movieclip that exists at the time the "current page" is displaying.
kglad, thanks for your help with this. I feel like I've almost got this but it's still not working.
I have a functioning preloader, attached to a movieclip on the _root timeline, which exists throughout the site.
Here's the code I have in that movieclip:
It seems like I need two container clips, one to keep the "current page" up while the loading bar is loading and the other to hold the next swf. Is this true?
Of course, as soon as I click Btn2 for the next page, movie1.swf is removed from the container clip (blank screen here) and movie2.swf starts loading into that container clip. I'm guessing that the a movie can't be loaded into a clip that already contains a movie. How can I do this?
when you start loading into a target movieclip flash first unloads anything else loaded into that target movieclip (and anything that was created in the authoring environment on that target movieclip's timeline).
so, if you want to display a current page while a next is loading you need, at least, 2 target movieclips. one to hold the current and one to load the next. you'll alternate between the target movieclips with each load.