flash源码

来源:百度知道 编辑:UC知道 时间:2024/06/07 19:06:48
var frameTime = 3;

for (var i = 1; i<=4; i++) {
this.pointMc["p"+i]._visible = 0;
}
this.pointMc.onEnterFrame = function() {
if (timer++%frameTime == 0) {
mc = this.duplicateMovieClip("pointMc"+i, 999+i++);
mc._rotation = random(360);
}
};

这是flash6的代码怎么改成flash8的代码呀?

不同改了吧,可以直接用的啊.

var frameTime = 3;

for (i = 1; i<=4; i++) {
this.pointMc["p"+i]._visible = 0;
}
this.pointMc.onEnterFrame = function() {
if ((timer++)%frameTime == 0) {
mc = this.duplicateMovieClip("pointMc"+i, 999+(i++));
mc._rotation = Math.random()*360;
}
};