# rollOver handler for Movie Clip?

**URL:** <https://forum.kirupa.com/t/rollover-handler-for-movie-clip/198419>\
**Category:** flash\
**Created:** [August 24, 2006, 8:42pm UTC](https://forum.kirupa.com/t/rollover-handler-for-movie-clip/198419 "2006-08-24T20:42:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![littlepowell](https://avatars.discourse-cdn.com/v4/letter/l/a6a055/32.png) [@littlepowell](https://forum.kirupa.com/u/littlepowell)\
**Post date:** [August 24, 2006, 8:42pm UTC](https://forum.kirupa.com/t/rollover-handler-for-movie-clip/198419/1 "2006-08-24T20:42:31Z")

</div>

Is there a handler for a Movie Clip that works like “rollOver” for a button? I have a button, that when released, needs to maintain its “down” state. If there’s a way to do this with a button that would be great. Otherwise, I can change the button to a movieclip and use “gotoAndStop” commands. If I do that, I don’t know how to cause the movieclip to advance from the first frame to the second frame when the user hovers over the movieclip on the main stage. Here’s the code I have in the actual movieclip (called to the stage via AS):

```auto

this.gotoAndStop(1);
this.rollOver = function(){
 this.gotoAndStop(2);
}
this.rollOut = function(){
 this.gotoAndStop(1);
}
this.onPress = function(){
 this.gotoAndStop(3);
}

```

When I preview my movie, the movieclip is called successfully and stops at frame 1 of the movie. If I rollover or rollout nothing happens. If I press the movieclip, it advances to frame 3 of the movie. Any suggestions would be great!
