# Coding basic

**URL:** <https://forum.kirupa.com/t/coding-basic/147198>\
**Category:** Uncategorized\
**Created:** [May 8, 2005, 6:06am UTC](https://forum.kirupa.com/t/coding-basic/147198 "2005-05-08T06:06:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![leiss](https://avatars.discourse-cdn.com/v4/letter/l/4bbf92/32.png) [@leiss](https://forum.kirupa.com/u/leiss)\
**Post date:** [May 8, 2005, 6:06am UTC](https://forum.kirupa.com/t/coding-basic/147198/1 "2005-05-08T06:06:46Z")

</div>

hi again,

so i fixed my button with great help from  
([http://www.kirupa.com/developer/mx2...tton\_effect.htm](http://www.kirupa.com/developer/mx2...tton_effect.htm))

now i have another thing - as a quite a fresh flasher 😉 - concerning coding:

i want to tell the button to jump to another frame. but it doesn´t work the way it ususally works.

lets say  
on scene: frame 1 the button, frame 2 another text which the button should be pointing to.

the last part of the code:

this.onRelease = function(){  
getURL(“[http://www.kirupa.com](http://www.kirupa.com)”,"\_blank");  
}

i replace with:

this.onRelease = function(){  
gotoAndPlay(2);  
}

this doesn´t work - what is wrong with that?

below the whole code from  
([http://www.kirupa.com/developer/mx2...tton\_effect.htm](http://www.kirupa.com/developer/mx2...tton_effect.htm))

* * *

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](http://www.kirupa.com)”,"\_blank");  
}
