# Complex button control timeline issue

**URL:** <https://forum.kirupa.com/t/complex-button-control-timeline-issue/267879>\
**Category:** Uncategorized\
**Created:** [August 6, 2008, 6:48pm UTC](https://forum.kirupa.com/t/complex-button-control-timeline-issue/267879 "2008-08-06T18:48:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pengie](https://avatars.discourse-cdn.com/v4/letter/p/49beb7/32.png) [@pengie](https://forum.kirupa.com/u/pengie)\
**Post date:** [August 6, 2008, 6:48pm UTC](https://forum.kirupa.com/t/complex-button-control-timeline-issue/267879/1 "2008-08-06T18:48:34Z")

</div>

Ok, so I have a movieclip on my stage which has buttons in it.

The movie clip is animated and I wanted it to play the animation when you rollover it and play it backwards when you roll off…

Since there are buttons in the movie clip I used

stop();  
myInterval = function () {  
menu\_mc.page\_btn.onRelease = function() {  
clearInterval(IntervalName);  
\_root.gotoAndStop(5);  
};  
};  
IntervalName = setInterval(myInterval, 1);  
myinterval();

on the main timeline which works until I add

this.onEnterFrame = function(){  
if(rewind == true){  
prevFrame();  
}  
}

this.onRollOver = function(){  
rewind = false;  
play();  
}  
this.onRollOut = function(){  
rewind = true;  
}

to the first frame of the movie clip

so if the roll over/out as isnt there it works, but if it isnt there it doesnt work.

So how do I make the buttons work inside of the movie clip if the movie clip has that as?
