Calling the on(press) event handler


Typically when you set an event handler function for buttons by code, like:

mybutton.onPress = function(){

you can access and call this event handler function by:


and it will execute the function and trace “Hello!”.

My question

But when you set event handlers on the button itself, like:


is that event function accessible from code? how? I know there would be a property that you can access it by, maybe we can “decompile” an SWF to check out finally which property it stores the event code in, or would any of you have any idea?

mybutton.onPress(); // This does not work!