I am doing a simple Flash button that controls the playing of a moving clip.
I want the movie to go to frame one and play when I mouse over the button and I want it to go to frame 12 and play when I mouse out. I have stop(); at frames 1, 12 and 25 to prevent looping.
The mouse_over part works fine, but the mouse_out part is unresponsive.
Here is my actionscript:
stop();
button_btn.addEventListener(MouseEvent.MOUSE_OVER, playMovie);
button_btn.addEventListener(MouseEvent.MOUSE_OUT, unwindMovie);
function playMovie(evtObj:MouseEvent)
{
gotoAndPlay(1);
}
function unwindMovie(evtObj:MouseEvent)
{
gotoAndPlay(12);
}
I would appreciate some help figuring out why this will not play properly.
Thanks.