home *** CD-ROM | disk | FTP | other *** search
- this.speed = 4;
- this.onEnterFrame = function()
- {
- if(this._x > 1000)
- {
- this._x = -5 - Math.floor(Math.random() * 400);
- this._y = 200 + Math.floor(Math.random() * 700);
- this.speed = Math.random();
- }
- this._x += 2 + 2 * this.speed;
- this._y -= 1 + 1 * this.speed;
- };
-