home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / dragonforce.swf / scripts / DefineSprite_555 / frame_71 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  1.0 KB  |  37 lines

  1. i = 0;
  2. while(i < 15)
  3. {
  4.    _root.credits.attachMovie("spark1","spark" + _root.depth,_root.depth);
  5.    _root.credits["spark" + _root.depth]._x = 0;
  6.    _root.credits["spark" + _root.depth]._y = 0;
  7.    _root.credits["spark" + _root.depth]._rotation = random(360);
  8.    _root.credits["spark" + _root.depth]._xscale = _root.credits["spark" + _root.depth]._yscale = random(50) + 50;
  9.    if(_root.depth < 100000)
  10.    {
  11.       _root.depth = _root.depth + 1;
  12.    }
  13.    else
  14.    {
  15.       _root.depth = 100;
  16.    }
  17.    i++;
  18. }
  19. i = 0;
  20. while(i < 15)
  21. {
  22.    _root.credits.attachMovie("spark2","spark" + _root.depth,_root.depth);
  23.    _root.credits["spark" + _root.depth]._x = 0;
  24.    _root.credits["spark" + _root.depth]._y = 0;
  25.    _root.credits["spark" + _root.depth]._rotation = random(360);
  26.    _root.credits["spark" + _root.depth]._xscale = _root.credits["spark" + _root.depth]._yscale = random(50) + 50;
  27.    if(_root.depth < 100000)
  28.    {
  29.       _root.depth = _root.depth + 1;
  30.    }
  31.    else
  32.    {
  33.       _root.depth = 100;
  34.    }
  35.    i++;
  36. }
  37.