# Btns within roll over mc

**URL:** <https://forum.kirupa.com/t/btns-within-roll-over-mc/219520>\
**Category:** flash\
**Created:** [March 17, 2007, 12:20pm UTC](https://forum.kirupa.com/t/btns-within-roll-over-mc/219520 "2007-03-17T12:20:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![g\_rochford](https://avatars.discourse-cdn.com/v4/letter/g/c57346/32.png) [@g\_rochford](https://forum.kirupa.com/u/g_rochford)\
**Post date:** [March 17, 2007, 12:20pm UTC](https://forum.kirupa.com/t/btns-within-roll-over-mc/219520/1 "2007-03-17T12:20:42Z")

</div>

I have a simple roll on roll off movie clip using this code

```auto
stop(); // stop the movie clip from playing (stop button from growing, we want that when the mouse rolls over only
                                             
this.onEnterFrame = function(){
    if(rewind == true){ //if rewind switch is set to true play backwards
        prevFrame(); // play backwards
    }
}

this.onRollOver = function(){
    rewind = false; //set variable (or switch) that decides wether ot not to play backwards...
    play(); // play this movie clip.. (grow the button(tween));
}

this.onRollOut = function(){
    rewind = true; //set or rewind switch to true so it will play backwards...
}

```

the problem is, any btns that i place inside it dont work. DOes anyone have a good work around for this, or a better piece of code for the roll over action…

Many thanks

Greg
