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