Ok folks, I just need one last thing... I'm sorry for posting my questions on two forums (this one and kirupa's), but I'm rapidly running out of time and I really need an answer soon.
I need to get the snow_mc movieclip to move to frame 2 after x frames in the main timeline of film, then onto frame 3 after x frames in the main timeline of the film.
I was told on that forum:
To continually check the _currentframe property, it must be enclosed within an onEnterFrame handler.
Unfortunately, I don't know how to do it properly.
I did try to get the right code for quite a long time, but nothing works. Here's what I have so far, on a frame in the main timeline:
onEvent (enterFrame)
{
if (!(this._currentframe >= 1 && this._currentframe<=100)){
snow_mc.gotoAndStop(1);
} else if (!(this._currentframe == 101 && this._currentframe<=200)){
snow_mc.gotoAndStop(2);
} else {
snow_mc.gotoAndStop(3);
}
}
However, as far as I can tell, it just stays on frame 1 of the snow_mc movieclip the whole time.
Here is a screenshot of what it looks like, in case my explanation is confusing:
http://e.imagehost.org/0882/screen.gifI already successfully got it to switch between two frames in the movieclip, but I can't get it to switch between 3 frames.
Here's the 2-frame code that worked:
if (this._currentframe <= 200){
snow_mc.gotoAndStop(1);
} else {
snow_mc.gotoAndStop(2);
}
(snow_mc is the movieclip)