home *** CD-ROM | disk | FTP | other *** search
- i = 30;
- while(i > 0)
- {
- wone = random(2);
- rotation = random(361);
- size = random(50) + 70;
- if(wone == 0)
- {
- attachMovie("smallpar","smallpar" + _root.depth,_root.depth);
- _root.explosion["smallpar" + _root.depth]._x = _root.explosion["smallpar" + _root.depth]._y = 0;
- _root.explosion["smallpar" + _root.depth]._rotation = rotation;
- _root.explosion["smallpar" + _root.depth]._xscale = _root.explosion["smallpar" + _root.depth]._yscale = size;
- if(_root.depth < 1000)
- {
- _root.depth = _root.depth + 1;
- }
- else
- {
- _root.depth = 5;
- }
- }
- else
- {
- attachMovie("bigpar","bigpar" + _root.depth,_root.depth);
- _root.explosion["bigpar" + _root.depth]._x = _root.explosion["bigpar" + _root.depth]._y = 0;
- _root.explosion["bigpar" + _root.depth]._rotation = rotation;
- _root.explosion["bigpar" + _root.depth]._xscale = _root.explosion["bigpar" + _root.depth]._yscale = size;
- if(_root.depth < 1000)
- {
- _root.depth = _root.depth + 1;
- }
- else
- {
- _root.depth = 5;
- }
- }
- i--;
- }
- i = 5;
- while(i > 0)
- {
- wone = random(2);
- rotation = random(60) - 30;
- size = random(50) + 70;
- if(wone == 0)
- {
- attachMovie("smallpar","smallpar" + _root.depth,_root.depth);
- _root.explosion["smallpar" + _root.depth]._x = _root.explosion["smallpar" + _root.depth]._y = 0;
- _root.explosion["smallpar" + _root.depth]._rotation = rotation;
- _root.explosion["smallpar" + _root.depth]._xscale = _root.explosion["smallpar" + _root.depth]._yscale = size;
- if(_root.depth < 1000)
- {
- _root.depth = _root.depth + 1;
- }
- else
- {
- _root.depth = 5;
- }
- }
- else
- {
- attachMovie("bigpar","bigpar" + _root.depth,_root.depth);
- _root.explosion["bigpar" + _root.depth]._x = _root.explosion["bigpar" + _root.depth]._y = 0;
- _root.explosion["bigpar" + _root.depth]._rotation = rotation;
- _root.explosion["bigpar" + _root.depth]._xscale = _root.explosion["bigpar" + _root.depth]._yscale = size;
- if(_root.depth < 1000)
- {
- _root.depth = _root.depth + 1;
- }
- else
- {
- _root.depth = 5;
- }
- }
- i--;
- }
-