有20个MC,我要选其中10个,让MC:gotoAndStop(3),程序如下:
array1 = new array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20);
for (i=0; i<10; i++) {
array1.splice(random(array1.length), 1);
}
for (i=0; i<10; i++) {
tempname = "treasure" add array1[i];
-----tempname.gotoAndStop(3);-----
}
其中-----tempname.gotoAndStop(3);----这行有问题,但我不清楚怎样写,才能作用?
谢谢帮助