快速連結

2013年5月21日

對每個child作class確認

以下是程式碼:

for (var i:uint = 0; i < this.numChildren;i++){
  var child = this.getChildAt(i);
  if (child is SimpleButton){
     trace(child,"is SimpleButton");
  }
}