home *** CD-ROM | disk | FTP | other *** search
- _xscale = 120;
- _yscale = _xscale;
- x = _X;
- y = _Y;
- onEnterFrame = function()
- {
- _X = x;
- _Y = y;
- _X = _X + (random(2) - 0.5);
- _Y = _Y + (random(2) - 0.5);
- if(this.top)
- {
- this._alpha -= 2;
- }
- if(!this.top)
- {
- this._alpha += 2;
- }
- if(this._alpha >= 100)
- {
- this.top = true;
- }
- if(this._alpha <= 0)
- {
- this.top = false;
- }
- };
-