# Advanced Button Problems

**URL:** https://forum.kirupa.com/t/advanced-button-problems/241431
**Category:** flash
**Created:** [October 13, 2007, 11:39pm UTC](https://forum.kirupa.com/t/advanced-button-problems/241431 "2007-10-13T23:39:25Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Warlorddesigns](https://avatars.discourse-cdn.com/v4/letter/w/d2c977/32.png) [@Warlorddesigns](https://forum.kirupa.com/u/Warlorddesigns)
#### Post date: [October 13, 2007, 11:39pm UTC](https://forum.kirupa.com/t/advanced-button-problems/241431/1 "2007-10-13T23:39:25Z")

</div>

Ok well I got the button to work from [this](http://www.toxiclab.org/tutorial.asp?ID=61) tutorial and the link and everything works, but I want the button to go to a frame instead of a URL. What is in red is what I am trying to change. The code is as follows:

> stop ();  
> this.onEnterFrame = function(){  
> if(rewind == true){  
> prevFrame();  
> }  
> }  
> this.onRollOver = function(){  
> rewind = false;  
> play();  
> }  
> this.onRollOut = function(){  
> rewind = true;  
> }  
> [COLOR=red]this.onRelease = function(){  
> getURL(“[http://www.toxiclab.org](http://www.toxiclab.org)”);  
> }[/COLOR]  
> This is what I tried to replace it with but it did not work, is their another way to do this? Basically what I want to know is how would I go to another frame using this code?

> [COLOR=green]this.onRelease = function(){  
> gotoAndPlay(7);  
> }[/COLOR]  
> Thanks for any help that follows.
