字典取KEY,占位符,延迟刷新

flash 监听事件者 与 事件发出者

比如说现在有A和B,
A.addChild(B)
A监听鼠标点击事件
那么当点击B时,target是B,currentTarget是A
也就是说,currentTarget始终是监听事件者,而target是事件的真正发出者

匿名函数的引用

var t:Timer = new Timer(1000,10);
      t.addEventListener(TimerEvent.TIMER,function(evt:TimerEvent):void{
        if(t.currentCount>=10){
          t.removeEventListener(TimerEvent.TIMER,arguments.callee);
        }
      });
      t.start();

字典按KEY循环
for (var key:Object in groupMap)
{
    trace(key, groupMap[key]);
}

给class注册个别名 getClassByAlias 

flash textField htmlText 图文混排时
img 可以使用 as3 class link
textField要设自动换行。
每个图片会占一行。

flash里的 u3000 相当于占位符空格。 unicode 编码表在维基百科里有。百度百科对于编码表有大致的解释(很有用)
u3000 用的是16进制。

 http://baike.baidu.com/link?url=kMzgALFIKlh-6Tn7PG8Er3-SZhqAFJnoLym8DeGwQVU6w0D_OrhBAZDw7JJvueVz

stage.invalidate()不会让Flashplayer立即更新屏幕,但是会促使Flashplayer发出Event.RENDER事件。

原文地址:https://www.cnblogs.com/mattins/p/3298731.html