home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Acao / Titans / raven.swf / scripts / DefineSprite_172 / frame_4 / DoAction.as
Text File  |  2006-01-05  |  781b  |  51 lines

  1. n.gotoAndStop("tele");
  2. delete onmousedown;
  3. sy = n._y;
  4. ro = 0.1;
  5. r.esp = 1;
  6. mouseup = 0;
  7. onenterframe = function()
  8. {
  9.    n._y = sy + math.sin(a++ * 0.1) * 10;
  10.    n._rotation += ro;
  11.    if(math.abs(n._rotation) > 4)
  12.    {
  13.       ro = - ro;
  14.    }
  15.    if(r.crash)
  16.    {
  17.       r.got = 0;
  18.       r.esp = 0;
  19.       r.crash = 0;
  20.       r.score += r.point;
  21.       r.rub2.removeMovieClip();
  22.       gotoAndPlay(1);
  23.    }
  24.    else if(r.hit)
  25.    {
  26.       r.esp = 0;
  27.       letgo();
  28.       gotoAndPlay(10);
  29.    }
  30.    else if(r.finish)
  31.    {
  32.       r.esp = 0;
  33.       letgo();
  34.       gotoAndPlay(15);
  35.    }
  36.    else if(mouseup)
  37.    {
  38.       r.esp = 0;
  39.       letgo();
  40.       gotoAndPlay(1);
  41.    }
  42. };
  43. onmouseup = function()
  44. {
  45.    if(r.esp)
  46.    {
  47.       mouseup = 1;
  48.    }
  49. };
  50. stop();
  51.