I tried doing this:
root.addEventListener(\"click\",
function ()
{
navigateToURL(ClickURLRequest,\"_self\");
});
And it
It's not too much different than using a defined function, but maybe this will satisfy your needs. Remember that Functions are first-class objects in ActionScript and you can store and pass them around as variables.
protected function addListener()
{
m_handler = function(in_event:Event) { removeEventListener(MouseEvent.CLICK, m_handler); m_handler=null}
addEventListener(MouseEvent.CLICK, m_handler)
}
protected var m_handler:Function