home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / sleepless-knight.swf / scripts / DefineSprite_239 / frame_1 / DoAction.as
Encoding:
Text File  |  2008-09-11  |  428 b   |  13 lines

  1. function checkData()
  2. {
  3.    saveText = "Level " + _root.savefile.data.saveObject.level + " / Game Time " + Math.round(_root.savefile.data.saveObject.timer / 30) + " Seconds.";
  4.    if(_root.savefile.data.saveObject.level < 2 || _root.savefile.data.saveObject.level == undefined)
  5.    {
  6.       _visible = false;
  7.       _root.newData();
  8.       _root.saveData();
  9.       stopAllSounds();
  10.       _root.gotoFrame("INTRO1",2);
  11.    }
  12. }
  13.