你好我試圖做到這一點(在as2這個工作,但不是在as3)我看了谷歌3小時,但仍然沒有找到一個解決方案(thans你的幫助):AS3動態變形動畫片短片
import flash.display.MovieClip;
var mcContainer:MovieClip = new MovieClip();
var mcImage0:MovieClip = new MovieClip();
var mcImage1:MovieClip = new MovieClip();
var mcImage2:MovieClip = new MovieClip();
var mcImage3:MovieClip = new MovieClip();
mcImage0.name = "Boy";
mcImage1.name = "Girl";
mcImage2.name = "Woman";
mcImage3.name = "Man";
var ArrayNamesOfMC:Array = new Array();
var i:int = 4;
while(i--) {
ArrayNamesOfMC.push(["mcImage"+i].name);
}
這donsn't工作:
ArrayNamesOfMC.push(["mcImage"+i].name);