home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Acao / run-soldier-run.swf / scripts / DefineSprite_129 / frame_1 / DoAction.as
Encoding:
Text File  |  2008-09-11  |  328 b   |  17 lines

  1. _parent.stop();
  2. with(this)
  3. {
  4.    startTime = getTimer();
  5.    thisFPS = 40;
  6.    onEnterFrame = function()
  7.    {
  8.       elapsed = getTimer() - startTime;
  9.       goFrame = Math.floor(elapsed / thisFPS);
  10.       if(goFrame > _totalframes)
  11.       {
  12.          goFrame = _totalframes;
  13.       }
  14.       gotoAndStop(goFrame);
  15.    };
  16. }
  17.