1:for in 获取对象属性(普通)
var o:Object=new Object(); o.name='mm'; o.type='size'; o.size='32D'; for (var i:String in o) { trace(i); trace(o[i]); }
2:describeType获取对象属性(高级)
flash.utils.describeType var oXml:XML=describeType(o);
3:移除匿名侦听函数
m_someBtn.addEventListener(MouseEvent.CLICK,function(e:MouseEvent):void{ (e.target).removeEventListener(MouseEvent.CLICK,arguments.callee); … })
4:添加帧代码
mc.addFrameScrip(mc.totalFrames - 1,lastFrameFun) function lastFrameFun():void { //最后一帧需要执行的代码 }