# Movie Clip Button Problems in AS3

**URL:** <https://forum.kirupa.com/t/movie-clip-button-problems-in-as3/235391>\
**Category:** flash\
**Created:** [August 10, 2007, 4:55pm UTC](https://forum.kirupa.com/t/movie-clip-button-problems-in-as3/235391 "2007-08-10T16:55:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![indnkidd](https://avatars.discourse-cdn.com/v4/letter/i/8e8cbc/32.png) [@indnkidd](https://forum.kirupa.com/u/indnkidd)\
**Post date:** [August 10, 2007, 4:55pm UTC](https://forum.kirupa.com/t/movie-clip-button-problems-in-as3/235391/1 "2007-08-10T16:55:50Z")

</div>

I was trying to find this in the forum, but couldnt find it.

This was the code to do a rollover button in AS3 that would rewind after the rollover, but it does not work in AS3. Does anyone know the new code?

```php
stop();
this.onEnterFrame = function() {
    if (hrewind == true) {
        prevFrame();
    }
};
this.onRollOver = function() {
    hrewind = false;
    play();
};
this.onRelease = function() {
    loadMovie("files/index.swf", 0);
};
this.onRollOut = function() {
    hrewind = true;
};

```
