home *** CD-ROM | disk | FTP | other *** search
- this.age = 0;
- this.onEnterFrame = function()
- {
- if(int(this.age) < 10)
- {
- this.age = int(this.age) + 1;
- }
- this._x = (Math.random() - 0.5) * this.age * 3;
- this._y = (Math.random() - 0.5) * this.age * 3;
- var _loc2_ = Math.random() * 5 * this.age + 40;
- _loc2_ -= Math.max(0,this.age - 8) * 10;
- this._xscale = this._yscale = _loc2_;
- this.gotoAndStop(int(Math.min(this._totalframes,Math.max(2,int(Math.random() * 5) + this.age * 2.7))));
- this._rotation = Math.random() * 360;
- };
-