摘要:
例子中元件的链接属性:类名为:linghtPic1,linghtPic2,linghtPic3AS3.0 写法:import flash.utils.getDefinitionByName;var myArray:Array = new Array();for (var i:int = 0; i < 3; i++){ myArray.push(new (getDefinitionByName("lightPic"+(i+1)) as Class)); addChild(myArray[i]); myArray[i].alpha = 10 * i /100; myArr 阅读全文