bluewalrus
04-23-2010, 07:30 PM
I have a flash file with an animation going across 89 frames, that animation goes with a movie clip that is on top of it for 30 of those frames. The movie clip has 3 frames but has a stop action on each. I want to the main animation to loop through once on frame 1 then loop through again but have the movie clip on frame 2. I have it coded like this but it isn't working.
Frame 1:
var count_loop = 2;
Frame 2:
trace(count_loop);
//trace is to verify count_loop is functioning correctly which it is
_root.sign1.gotoAndStop(count_loop);
// this doesn't appear to be being called
Frame 89:
total_frames = 3;
if (count_loop>=total_frames) {
count_loop = 0;
}
count_loop = count_loop+1;
gotoAndPlay(2);
This is in CS3, AS2, for Flash Player 8. Thanks for any ideas.
Frame 1:
var count_loop = 2;
Frame 2:
trace(count_loop);
//trace is to verify count_loop is functioning correctly which it is
_root.sign1.gotoAndStop(count_loop);
// this doesn't appear to be being called
Frame 89:
total_frames = 3;
if (count_loop>=total_frames) {
count_loop = 0;
}
count_loop = count_loop+1;
gotoAndPlay(2);
This is in CS3, AS2, for Flash Player 8. Thanks for any ideas.