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

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?