# Trigger Button

**URL:** <https://forum.kirupa.com/t/trigger-button/57923>\
**Category:** flash\
**Created:** [July 17, 2004, 9:02pm UTC](https://forum.kirupa.com/t/trigger-button/57923 "2004-07-17T21:02:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lomelino](https://avatars.discourse-cdn.com/v4/letter/l/a9a28c/32.png) [@lomelino](https://forum.kirupa.com/u/lomelino)\
**Post date:** [July 17, 2004, 9:02pm UTC](https://forum.kirupa.com/t/trigger-button/57923/1 "2004-07-17T21:02:22Z")

</div>

How do you trigger the actions associated with a button

take for example a button called “buttonGo” that you have specific code in. When you click button b you also want buttonGo to execute its code.

I saw this done before and know it’s possible… I just need some clarity as to the process.

Thanks,

Joshua

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 17, 2004, 9:24pm UTC](https://forum.kirupa.com/t/trigger-button/57923/2 "2004-07-17T21:24:48Z")

</div>

You make the event handler dynamic (by using button1.onRelease = function(){ actions here } on the timeline), and then use this as the onRelease handler (also dynamic) for the second button:

```auto

secondButton.onRelease = function(){
button1.onRelease();
}

```

🙂
