In a Flash MX movie, I have a fast forward button with this On Release code
I do not have my movie set to loop, and I have a stop(); in the "exit1" frame.
I put in the first part of the If statement because if I hit the ff button too close to the end of the movie, it would just restart the movie. But even with that code, if I click the ff button, say, 175 frames before the last frame, the movie still restarts. I don't think it's even getting to the exit frame I'm telling it to go to (I put a trace in that frame and got nothing)
If I click the ff button in the beginning or middle of the movie, or within 120 frames of the last frame, it works fine.
Can someone see the problem with my logic?
Thanks!
Code:
if ((_currentframe + 120) >= _totalframes)
{
gotoandplay("exitscene","exit1");
}
else
{
gotoAndPlay(_currentframe + 100);
}
I put in the first part of the If statement because if I hit the ff button too close to the end of the movie, it would just restart the movie. But even with that code, if I click the ff button, say, 175 frames before the last frame, the movie still restarts. I don't think it's even getting to the exit frame I'm telling it to go to (I put a trace in that frame and got nothing)
If I click the ff button in the beginning or middle of the movie, or within 120 frames of the last frame, it works fine.
Can someone see the problem with my logic?
Thanks!