# A button jumping to different scenes

**URL:** https://forum.kirupa.com/t/a-button-jumping-to-different-scenes/242555
**Category:** flash
**Created:** [October 27, 2007, 12:38pm UTC](https://forum.kirupa.com/t/a-button-jumping-to-different-scenes/242555 "2007-10-27T12:38:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![souljah242](https://avatars.discourse-cdn.com/v4/letter/s/e99b99/32.png) [@souljah242](https://forum.kirupa.com/u/souljah242)
#### Post date: [October 27, 2007, 12:38pm UTC](https://forum.kirupa.com/t/a-button-jumping-to-different-scenes/242555/1 "2007-10-27T12:38:39Z")

</div>

Hey I created my flash website with Multiple scenes for each category/page. The problem I am having is placing the movie inside of a Button. When I put the movie clip inside of the button (I wanted a cool rollover effect) it won’t jump to the frame, but before I put the movie clip in the button it would goto the correct frame. Now the code for the Movie clip is:

stop();  
this.onEnterFrame = function() {  
if (rewind == true) {  
prevFrame();  
}  
};  
this.onRollOver = function() {  
rewind = false;  
play();  
};  
this.onRollOut = function() {  
rewind = true;  
};

and when I remove the section of this.onRollOut and onRollOver the button works fine, but then the button doesn’t have a rollover effect. Can someone help me
