I'm wondering about using the delete function in MX 2004. I can write a delete fuction for an on frame function ie:

Code:
_root.myButton.onRelease = function (){
    _root.gotoAndPlay("myFrame");
    delete _root.myButton.onRelease;
}
but i cant quite figure out how to do it with code on the MC, if I try

delete on(release);

I get and error stating there is an unexpected "on"

what is the syntax?

thanks in advance

Mark