把这些代码复制到新文件中为什么会失效?
//是版本问题
//没有付值的变量as1里是0,as2里是undefined
var frameTime = 3;
var i = 0;
while (i<=5) {
this.pointMc["p"+i]._visible = 0;
++i;
}
////////////////
//加上下面这一句
timer=0;
pointMc.onEnterFrame = function() {
if (timer++%frameTime == 0) {
mc = this.duplicateMovieClip("pointMc"+i, 999+i++, 999+i++);
mc._rotation = random(360);
}
};