[問題] 元件庫複製的mc如何命名並操控它
我從元件庫複製出mc,要怎麼命名並操控它?我下面的寫法不行,
請問要如何改,謝謝
for(var i:int=0; i<=3; i++){
var star:MovieClip = new _starMC()
this.addChild(star)
star.name ="p"+i
star.x=i*50;
star.y=i*30+10;
}
p0.x=0
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.130.167.185
推
11/29 20:51, , 1F
11/29 20:51, 1F
→
11/29 23:59, , 2F
11/29 23:59, 2F