home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / starisland.swf / scripts / DefineSprite_396_pad / frame_31 / DoAction.as
Encoding:
Text File  |  2007-12-10  |  573 b   |  17 lines

  1. stop();
  2. illusoft.Game.Instance.Totalscore += int(illusoft.Game.Instance.currentTile.GetTimeLeft() / 1000) * 10;
  3. _root.info1.txtScore.text = illusoft.Game.Instance.Totalscore;
  4. _root.tosoc = illusoft.Game.Instance.Totalscore;
  5. var i = illusoft.Game.Instance.Totalscore - illusoft.Game.Instance.Thisscore;
  6. this.onEnterFrame = function()
  7. {
  8.    this.txtTotal.text = i;
  9.    i += 50;
  10.    if(i > illusoft.Game.Instance.Totalscore)
  11.    {
  12.       this.txtTotal.text = illusoft.Game.Instance.Totalscore;
  13.       delete this.onEnterFrame;
  14.       this.gotoAndPlay("end");
  15.    }
  16. };
  17.