Hi all!

I want to extend the functionality of an onPress event handler.

Basically everytime I declare an onPress event handler on a movieclip, I want it to do some additional stuff to the stuff I declare on my onPress handler.

I got some way there with this:

code:

getPress = function () {
this.commonPress();
return this._onPress;
};
setPress = function (func) {
this._onPress = func;
};
MovieClip.prototype.addProperty("onPress", getPress, setPress); MovieClip.prototype.commonPress = function() {
trace("my waffle");
};
boo.onPress = function() {
trace("pollywaffle");
};



But this made all movieclips have an onPress handler by default, which I do not want, I simply want the onPress to do some additional stuff everytime I declare it on a movieclip

Thanks in advance for your help people