Movie Clip Button Problems in AS3

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?

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;
};