ppzhu's blog

距离是心情造成的,与肉眼无关,心情若是苍茫着,触摸到了也是遥远…

Main menu

Skip to content
  • 首页
  • 关于

Monthly Archives: 一月 2012

移除匿名函数的侦听便捷方法

Posted on 2012年01月29日 by ppzhu
2

使用arguments.callee。
arguments.callee 指当前被调用的函数。
下面是代码 :
mc.addEventListener(Event.ENTER_FRAME, function(e:Event):void{
//…..
mc.removeEventListener(Event.ENTER_FRAME, arguments.callee);
});

Posted in work | 2 Replies

Archives

  • 2012 年五月
  • 2012 年三月
  • 2012 年一月
  • 2011 年三月
  • 2010 年十一月
  • 2010 年九月
  • 2010 年八月
  • 2010 年七月
  • 2010 年六月
  • 2010 年五月
  • 2010 年三月
  • 2010 年二月
  • 2010 年一月

Meta

  • 注册
  • 登录
Proudly powered by WordPress | Theme: Duster by Automattic.