home *** CD-ROM | disk | FTP | other *** search
- speedY = Math.random() * 4;
- DirX = Math.abs(Math.random() * 10);
- if(DirX >= 0 && DirX <= 5)
- {
- speedX = Math.random() * 10;
- }
- else if(DirX > 5 && DirX <= 10)
- {
- speedX = - Math.random() * 10;
- }
- this.onEnterFrame = function()
- {
- if(this._y >= 7)
- {
- this._visible = 1;
- }
- else
- {
- this._visible = 0;
- }
- speedY -= 1;
- this._y -= SpeedY / 7;
- this._rotation -= 60;
- if(this._y >= 400 || this._y <= -400 || this._x >= 400 || this._x <= -400)
- {
- this.unloadMovie();
- }
- };
-