# Does onEnterFrame stop buttons from working?

**URL:** https://forum.kirupa.com/t/does-onenterframe-stop-buttons-from-working/252429
**Category:** Uncategorized
**Created:** [February 20, 2008, 1:26am UTC](https://forum.kirupa.com/t/does-onenterframe-stop-buttons-from-working/252429 "2008-02-20T01:26:20Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![csikdesign](https://avatars.discourse-cdn.com/v4/letter/c/c6cbf5/32.png) [@csikdesign](https://forum.kirupa.com/u/csikdesign)
#### Post date: [February 20, 2008, 1:26am UTC](https://forum.kirupa.com/t/does-onenterframe-stop-buttons-from-working/252429/1 "2008-02-20T01:26:20Z")

</div>

I used kirupas tutorial ‘Complex Button RollOver/Rollout Effects’ to make a menu that slides down when you roll over it. I have buttons inside that menu\_mc - but they dont work.

My question is - does the on enter frame function prevent buttons from working?

Here is the code that is inside my menu\_mc:  
stop();

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

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

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