ActionScript 3.0 using closures for event handlers

前端 未结 9 2042
挽巷
挽巷 2020-12-28 18:35

I tried doing this:

root.addEventListener(\"click\", 
   function () 
   { 
      navigateToURL(ClickURLRequest,\"_self\"); 
   });

And it

9条回答
  •  南方客
    南方客 (楼主)
    2020-12-28 19:15

    I'm not sure if this will work but its worth a shot:

    root.removeEventListener("click", arguments.callee );
    

    More information about it can be found Flex lang ref

提交回复
热议问题