Trigger Button

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

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:


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

:slight_smile: