Calling the on(press) event handler

Preface

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

mybutton.onPress = function(){
   trace("Hello!");
}

you can access and call this event handler function by:

mybutton.onPress();

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

My question

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

on(press){
   trace("Hello!");
}

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!