# Simple Button Question

**URL:** <https://forum.kirupa.com/t/simple-button-question/90483>\
**Category:** Uncategorized\
**Created:** [May 18, 2005, 5:22am UTC](https://forum.kirupa.com/t/simple-button-question/90483 "2005-05-18T05:22:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![imark](https://avatars.discourse-cdn.com/v4/letter/i/c5a1d2/32.png) [@imark](https://forum.kirupa.com/u/imark)\
**Post date:** [May 18, 2005, 5:22am UTC](https://forum.kirupa.com/t/simple-button-question/90483/1 "2005-05-18T05:22:33Z")

</div>

Hey guys, I just finished making some buttons using the kirupa “Complex Button RollOver/RollOut Effects” tutorial. Now my question is, what line of code do I use to control what scene my movie is at.

Here is the code

```auto
//stop(); 
  
this.onEnterFrame = function(){ 
if(rewind == true){ 
prevFrame(); 
} 
} 
  
this.onRollOver = function(){ 
rewind = false; 
play(); 
} 
  
this.onRollOut = function(){ 
rewind = true; 
} 
  
this.onRelease = function(){ 
getURL("http://www.kirupa.com","_blank"); 
}

```

As you can see I need to change the “getURL(“[http://www.kirupa.com](http://www.kirupa.com)”,”\_blank"); to something that will change my main movie to a specific scene. Keep in mind this action script is set inside a movie clip.

Thanks in advance.
