[quoted text, click to view] dcowart wrote:
> thanks for the quick response. i was hoping it would be possible to load one
> file while the other movie was playing, but from what you said i see this isnt
> possible.
Misunderstanding or I just wasn't to clear, sorry
If you run both movies in same html, you can preloader the second while the first one is running.
You just load the second movie into a level of the first movie while it is running.
Keep it some stop(); action to prevent it from playing, than once you first movie is done
you can call the second one using (assuming you loaded it in level 1)
_level1.play();
or say you want to start the second movie from frame with label name than :
_level1.gotoAndPlay("labelNameHere");
You can't preloader SWF which is on the server and run in different html, like
index.swf is located in index.html and once it's done playing it calls second.swf in second.html.
This can not be preloaded.
[quoted text, click to view] > I really just want something simple, like a bar. So to add the
> preloader, i would simply add this to the first frame of the second (home.swf)
> file?
The easiest bar I could think of would be one small movie clip with shape tween covering 100 frames.
Frame 1 tiny bit of shape and stop(); action, than on frame 100 large bar than in between these
frames shape tween. To simulate the size increase.
Than a little action that would progress that movie clip shape tween as the bytes get loaded.
select the clip and hit F9 to open action editor, than paste :
onClipEvent (load) {
_root.stop();
}
onClipEvent (enterFrame) {
shape = Math.floor((_root.getBytesLoaded()*100)/_root.getBytesTotal());
gotoAndStop(shape);
if (shape == 100) {
_root.play();
}
}
It will stop the timeline and compare bytes loaded versus bytes total
than progress the movie clip accordingly and one the clip reach 100 frames it will
play the timeline.
You can replace the _root.play() with whatever you want it to go to after the loading.
--
Regards
Urami
--
<urami>
http://www.Flashfugitive.com </urami>
<web junk free>
http://www.firefox.com