Okay, so I’m trying to get a movieclip (lets call it ALFRED) to stop when I mouse over a button.
I want that movieclip to keep playing until it reaches that exact frame. Let’s call that frame “rank1.” “Rank1” happens to be on frame 100.
So, you mouse over… and the movieclip, ALFRED is in the middle of it’s animation or whatever and is currently on frame 35. Nothing should happen. A second later, when ALFRED reaches frame 100 or “Rank1” ALFRED should stop();
on(rollOver){
if (_root.ALFRED._currentframe = “rank1”) {
_root.ALFRED.stop();
}
}
Doesn’t work. Instead, when you roll your mouse over it, it stops ALFRED on whatever frame ALFRED happens to be on. Replacing “rank1” with frame “100” yields the same result.
That’s because this:
on(rollOver){
if (_root.ALFRED._currentframe == “rank1”) {
root.ALFRED.stop()
}
is only checking to see if alfred is on that frame at the time of the rollover, it does not continue to check while the mouce is on top of the button. So if alfred is not on that exact frame when you roll over the button, then n othing is going to happen.