View Full Version : communicating between movies
emcee
10-16-2001, 02:18 AM
I have a preloader on level 0 and after checking to see if the main movie on level 1 is finished loading, I have the code "_level1.gotoAndStop(2)" The movie will jump to the proper frame (2) and level (1) but will return to frame 1 of the movie in level 0 after playing that one frame. Any ideas? Thanks.
put the tag stop() inthat frame
:D
emcee
10-16-2001, 06:56 PM
Thanks for the reply. Unfortunately, I do have the code in that frame but it doesn't stop in that frame (it does stop if I just play that movie by itself). Here's the situation in more detail:
The preloader movie on _level0 has the code in frame 1: "loadMovie (web.swf, 1)" and this code on the last frame (215, after some animations):
loaded = _level1.getBytesLoaded();
total = _level1.getBytesTotal();
percentage = int(loaded/total)*100;
disp = percentage+"% loaded";
if (percentage == 100) {
_level1.gotoAndStop(2);
} else {
gotoAndPlay ("check");
}
emcee
10-16-2001, 07:00 PM
After it checks for 100%, it does play frame 2 of _level1 but jumps back to the beginning of _level0 instead of stopping on frame2, _level1 {which has the code: stop() } Frame 2, _level1 is the start of the main movie which has menus and things. It does work on it's own (when I just play that movie without the preloader on _level0).
Thanks in advance for your help!
vBulletin® v3.7.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.