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

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