home *** CD-ROM | disk | FTP | other *** search
- function fReset()
- {
- pScale = random(80) + 20;
- _xscale = pScale;
- _yscale = pScale + (random(30) - 15);
- pSpeed = pScale / 70;
- if(random(2) == 1)
- {
- _xscale = _xscale * -1;
- }
- if(random(2) == 1)
- {
- _yscale = _yscale * -1;
- }
- }
- pScale = random(80) + 20;
- _xscale = pScale;
- _yscale = pScale + (random(30) - 15);
- pSpeed = pScale / 70;
- if(random(2) == 1)
- {
- _xscale = _xscale * -1;
- }
- if(random(2) == 1)
- {
- _yscale = _yscale * -1;
- }
- onEnterFrame = function()
- {
- _X = _X - pSpeed;
- if(_X < -100)
- {
- _X = 650;
- fReset();
- }
- };
- stop();
-