is there proceed mislay opposite eventuality listeners objects?
i wish have reusable symbol purebred opposite callbacks, dynamic an outmost source. new callback set, i wish mislay old. i also wish means pristine callback presumably during any time.
public duty registerbuttoncallback(function:function):void
{
clearbuttoncallback();
button.addeventlistener(mouseevent.click, function, false, 0, true);
}
public duty clearbuttoncallback():void
{
(button.haseventlistener(mouseevent.click) == true)
{
// something mislay listener
}
}
i've seen suggestions here "arguments.callee" within callback, nonetheless i don't wish have functionality tied callback - example, i competence wish means click symbol twice.
suggestions?
Comments
Post a Comment