home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Acao / Titans / game.swf / scripts / frame_1 / DoAction.as
Encoding:
Text File  |  2006-01-05  |  662 b   |  28 lines

  1. getURL("FSCommand:trapallkeys",1);
  2. getURL("FSCommand:allowscale",0);
  3. stage.showMenu = false;
  4. duplicateMovieClip("fr","frame",26394);
  5. duplicateMovieClip("fr2","frame2",26395);
  6. onenterframe = function()
  7. {
  8.    persen = math.floor(this.getBytesLoaded() / this.getBytesTotal() * 100);
  9.    barcount = 30;
  10.    cnt = math.floor(persen / 100 * barcount);
  11.    if(cnt > 0 and cnt <= barcount)
  12.    {
  13.       var i = 1;
  14.       while(i <= cnt)
  15.       {
  16.          lbar["bar" + i].gotoAndStop(3);
  17.          i++;
  18.       }
  19.       lbar["bar" + (cnt + 1)].gotoAndStop(2);
  20.    }
  21.    if(persen == 100)
  22.    {
  23.       delete onenterframe;
  24.       gotoAndPlay(9);
  25.    }
  26. };
  27. stop();
  28.