Coding basic

hi again,

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

now i have another thing - as a quite a fresh flasher :wink: - 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”,"_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)


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");
}