2011-10-17 27 views

回答

0

你可以將它們都在舞臺上(沒有任何實例名稱或連接)到一個新的影片剪輯(可以調用一個mcHolder爲例),並訪問他們像這樣:

for (var i:uint = 0; i < mcHolder.numChildren; i++) 
{ 
    var photo:DisplayObject = mcHolder.getChildAt(i) as DisplayObject; 

    // Do something with the photos, like place them random on the screen. 
    photo.x = Math.random() * 400; 
    photo.y = Math.random() * 400; 
    photo.rotation = -10 + Math.random() * 20; 
} 

希望這有幫助!