actionscript 3.0 controlling closures eventuality handlers


i attempted doing this:



root.addeventlistener("click", 
duty ()
{
navigatetourl(clickurlrequest,"_self");
});


and does supplement eventuality listener. i controlling closures since work good situation,



however, stealing eventuality listener requires anxiety uncanny function, given i used an opposite closure, does work, i tried:



   root.removeeventlistener("click", 
duty ()
{
navigatetourl(clickurlrequest,"_self");
});


as good as:



   root.removeeventlistener("click", duty () {} );


the wholly proceed i found work embankment opposite closure indicate eventuality listeners during pre-existing function:



 duty onclick (e:event)
{
navigatetourl(clickurlrequest,"_self");
}

root.addeventlistener("click", onclick);
root.removeeventlistener("click", onclick);


does anyone know proceed opposite closures eventuality handlers while still maintaining ability mislay them?



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?