home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Acao / Titans / star.swf / scripts / DefineSprite_81 / frame_5 / DoAction.as
Encoding:
Text File  |  2006-01-05  |  453 b   |  33 lines

  1. s.gotoAndStop("hit");
  2. s.attachmovie("blink","blink",200);
  3. r.bar.barfr.play();
  4. r.inv = r.invhitdelay;
  5. if(!r.cheat1)
  6. {
  7.    r.energy -= r.energyless;
  8. }
  9. r.zhit.start();
  10. d = 15;
  11. s._x -= 30;
  12. xs = -10;
  13. onenterframe = function()
  14. {
  15.    s._x += xs;
  16.    if(s._x < 0)
  17.    {
  18.       s._x = 0;
  19.    }
  20.    xs *= 0.95;
  21.    d--;
  22.    if(!d)
  23.    {
  24.       r.hit = 0;
  25.       gotoAndPlay(1);
  26.    }
  27.    if(r.losing)
  28.    {
  29.       gotoAndPlay(10);
  30.    }
  31. };
  32. stop();
  33.