# Want to add other actions, help

**URL:** https://forum.kirupa.com/t/want-to-add-other-actions-help/182929
**Category:** Uncategorized
**Created:** [March 22, 2006, 3:09pm UTC](https://forum.kirupa.com/t/want-to-add-other-actions-help/182929 "2006-03-22T15:09:48Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![pheer](https://avatars.discourse-cdn.com/v4/letter/p/e56c9b/32.png) [@pheer](https://forum.kirupa.com/u/pheer)
#### Post date: [March 22, 2006, 3:09pm UTC](https://forum.kirupa.com/t/want-to-add-other-actions-help/182929/1 "2006-03-22T15:09:48Z")

</div>

Hi all.

I recently did the complexbutton tutorial on this site  
( [http://www.kirupa.com/developer/mx2004/button\_effect.htm](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 🙂

---

<div class="post-metadata">

### Author: ![JoshuaJonah](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/joshuajonah/32/1775_2.png) [@JoshuaJonah](https://forum.kirupa.com/u/JoshuaJonah)
#### Post date: [March 22, 2006, 3:20pm UTC](https://forum.kirupa.com/t/want-to-add-other-actions-help/182929/2 "2006-03-22T15:20:13Z")

</div>

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:

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

```

---

<div class="post-metadata">

### Author: ![pheer](https://avatars.discourse-cdn.com/v4/letter/p/e56c9b/32.png) [@pheer](https://forum.kirupa.com/u/pheer)
#### Post date: [March 22, 2006, 3:50pm UTC](https://forum.kirupa.com/t/want-to-add-other-actions-help/182929/3 "2006-03-22T15:50:03Z")

</div>

It works perfectly now. Thank you very much! 🙂
