穿越到北美洲的小说:如何让随机闪烁移动的星星消失或停止?

来源:百度文库 编辑:杭州交通信息网 时间:2024/05/08 00:56:20
有一个流星群的flash动画,

1~400帧星星随机移动闪烁,当401帧第二个影片开始时,
我想让星星消失,该怎么做呢

我试过空白关键帧不行的

而且流星动画不仅在本场景闪烁,到下一场景仍不消失~郁闷……(看到星星我就想吐)

帮帮兄弟 ^_^qq 610980038

==================================

以下是详细情况:
一共两个图层一个放动作,一个放流星mc_lighting

流星的命令如下
onClipEvent (load) {
this._xscale = this._yscale=this._alpha=random (100)+50
targetx = this._x;
targety = this._y;
}
onClipEvent (enterFrame) {
if (Math.abs (targetx-this._x)<100) {
targetx = random (_root.scene_width)+_root.scene_space
targety = this._y-random (_root.scene_height)-50;
this.gotoAndPlay(2)
}
if(this._y<0){
this._y=_root.scene_height+50
//targety=_root.scene_height+50
this._x=random(_root.scene_width)+_root.scene_space
}
this._x += _root.speed*(targetx-this._x);
this._y += _root.speed*(targety-this._y);
}

放动作的图层命令如下
scene_width = 780;
scene_height = 350;
scene_space = 80;
speed = 0.005;
lingtingNum = 15;
i = -20;
_root.lighting.onEnterFrame = function () {
this._visible = 0;
if (i
mc = this.duplicateMovieClip ("star"+i, i);
mc._x = random (scene_width)+scene_space;
mc._y = scene_height+50;
}
i++;
};

====================================

×_×郁闷死,十万火急!!