Not sure if this is the right forum. If not, please move.
Alright. I've been working on this project for a while for my flash class. I've already turned it in but I'm fixing it the way I wanted.
Anyway, my problem is I want a Movie Clip (instance name = menu_txt) to rotate and come to a smooth stop when I click a button (instance name = up_arrow). It works but only once.
So, basically, I have that image. I want it to rotate counter-clockwise. It starts out where it says "Str." The rotation when I click the up arrow works from 1 to 2 but doesn't from 2-3 3-4.
The code I have set is on the frame on an other layer.
up_arrow.onRelease = function() {
if (menu_txt.rotation = 0){
trace(menu_txt.rotation);
menu_txt.rotateTo (-90, 2, "easeOut", 0);
swishSound.start(0, 1);
}else if (menu_txt.rotation = -90){
trace(menu_txt.rotation);
menu_txt.rotateTo (-180, 2, "easeOut", 0);
swishSound.start(0, 1);
}else if (menu_txt.rotation = -190){
trace(menu_txt.rotation);
menu_txt.rotateTo (-270, 2, "easeOut", 0);
swishSound.start(0, 1);
}else if (menu_txt.rotation = -270){
knockSound.start(0, 1);
}
}
Like I said, the first one works but the other 3 don't. Any ideas. I can provide more info if need be.