Want to add other actions, help

Hi all.

I recently did the complexbutton tutorial on this site
( http://www.kirupa.com/developer/mx2004/button_effect.htm ) but instead
of adding the getURL on release I want to simply add gotoAndPlay() so it just
jumps to another frame. I’m just wondering, allthough I guess it’s rather simple, how to do this. I’ve tried myself and I get no errors when I do so, but it still doesn’t work. The code I tried with was:

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

I’ll appreciate help :slight_smile:

you are on track and correct, but you need to specify which timeline to “gotoAndPlay”. If it is the timeline that this button is on, you would use:

this.onRelease = function() {
_parent.gotoAndPlay(120);
};

It works perfectly now. Thank you very much! :slight_smile: