Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding an event to button.prototype.onRelease

Status
Not open for further replies.

bgreenhouse

Technical User
Feb 20, 2000
231
0
0
CA
Hi everyone

Here's an easy one I think. I want to add an action to every button I ever use. It's something stupid I'm just playing with where I'm making a bubble appear randomly on the screen and float up everytime someone hits a button. I have the code for it all worked out and in it's own function, now I just want to add that to the onRelease function of every button. I know how to define new functions for prototypes, but I'm not sure how to add to existing ones. Alternatively, if I could just find the AS for the onRelease function, I could redefine it as the original code with a call to my new function at the buttom.

Any takers?

Ben
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top