bgreenhouse
Technical User
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
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