[問題] AS3.0
想請問大大們關於AS2.0語法改寫
小弟一直被AS3.0困擾著
想問問是否有人可以幫我
看看這一段2.0的語法要怎改成3.0的
先感謝各位大大們~
m = random(5)+15;
tp = random(2);
cl = random(4)+2;
r = 360/m;
for (i=0; i<m; i++) {
_root.attachMovie("fire"+tp, "fire"+n, d);
_root["fire"+n]._x = _x;
_root["fire"+n]._y = _y;
_root["fire"+n]._rotation = i*r+random(40)-80;
_root["fire"+n].cl = cl;
_global.n++;
_global.d++;
}
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 125.230.123.230
→
10/12 14:25, , 1F
10/12 14:25, 1F
→
10/12 14:27, , 2F
10/12 14:27, 2F
→
10/12 14:45, , 3F
10/12 14:45, 3F
→
10/12 14:46, , 4F
10/12 14:46, 4F
→
10/12 14:47, , 5F
10/12 14:47, 5F
→
10/12 15:06, , 6F
10/12 15:06, 6F