# Beginner needing a bit of help

**URL:** <https://forum.kirupa.com/t/beginner-needing-a-bit-of-help/251678>\
**Category:** flash\
**Created:** [February 11, 2008, 5:57pm UTC](https://forum.kirupa.com/t/beginner-needing-a-bit-of-help/251678 "2008-02-11T17:57:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![amarkey](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@amarkey](https://forum.kirupa.com/u/amarkey)\
**Post date:** [February 11, 2008, 5:57pm UTC](https://forum.kirupa.com/t/beginner-needing-a-bit-of-help/251678/1 "2008-02-11T17:57:17Z")

</div>

I have two frames so far in my movie. The first is the background and the second is the background (very transparent) with a new image highlighted on top. I want the viewer to be able to rollover a section in the background with the mouse (dance\_mc) and view the second frame, then roll back out and be back on the background. I am going to do this with a few places once I get it working. Below is my code. I know most of it is working because when I test it with the alpha it works. But the gotoAndPlay does not work. I have the stop(); because without it the movie just plays continuously. What am I doing wrong?

stop();

dance\_mc.addEventListener(MouseEvent.ROLL\_OVER, mouseOverHandler);  
dance\_mc.addEventListener(MouseEvent.ROLL\_OUT, mouseOutHandler);

function mouseOverHandler(event:MouseEvent):void  
{  
dance\_mc.alpha = .5;  
dance\_mc.gotoAndPlay(2);  
}

function mouseOutHandler(event:MouseEvent):void  
{  
dance\_mc.alpha = 1;  
dance\_mc.gotoAndPlay(1);

}

dance\_mc.buttonMode = true; // enables use of hand cursor
