-
Is this right?
on (release) {
if (lit._y>30 & lit._y<142) {
lit._y += 20;
}
if (lit._y == 149.9) {
nextFrame();
}
}
i basically have a menu with a "lit" mc that moves up and down to show where u are in selection. this is the actionscript that goes on the down button. when it reachs a certain point (149.9) i want it to go to the next frame when pressed again, it doesnt do this.
-
it's very unlikely that the _y position will ever be exactly equal to 149.9 - especially considering that you are adding 20 to it.
Perhaps you should use >= 149 or something that is more likely to happen.