Hi there,
I have a movie clip with lots of frames - 1300 or so. At the end, I
want the movie to loop back to frame 250 (or whichever) instead of
going back to the first frame so I added an action layer and at the
last frame of the movie, added a key frame and the actionscript
gotoAndPlay(250);
This works just fine (perfectly, even) in testing environment (just
hitting command/return) or when put in a web page on its own but since
it takes several seconds to load, I put it in the following
preloader. All works fine except that the movie is now ignoring the
actionscript on the last frame that says 'gotoAndPlay(250);' so it's
looping back to the movie's start and looks bad.
my preloader has five layers:
1. actions -- 2 frames
2. outline -- 2 frames
3. text -- 2 frames
4. content -- 3 frames
5. loader bar -- 2 frames
In frame 2 of the actions layer is a keyframe and this actionscript:
myLoaded = Math.round(getBytesLoaded());
myTotal = Math.round(getBytesTotal());
myPercent = myLoaded/myTotal;
myBar._width = myPercent*150;
myText = Math.round(myPercent*100)+"%";
if (myLoaded == myTotal) {
gotoAndStop(3);
} else {
gotoAndPlay(1);
}
My .swf is loaded on the third frame of the content layer.
Why is the actionscript in the preloaded movieclip ignored? What am I
missing?
I've been at this for a couple of days now.... Please help!