home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Puzzle / caray_skane.swf / scripts / frame_1 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  1.1 KB  |  61 lines

  1. fscommand("fullscreen","true");
  2. fscommand("fullscreen","false");
  3. total = _root.getBytesTotal();
  4. loaded = _root.getBytesLoaded();
  5. sound4 = new Sound();
  6. sound4.attachSound("fond");
  7. t = getTimer() / 1000;
  8. score1 = 0;
  9. score2 = 0;
  10. score3 = 0;
  11. score4 = 0;
  12. score5 = 0;
  13. score6 = 0;
  14. score7 = 0;
  15. score8 = 0;
  16. score9 = 0;
  17. score10 = 0;
  18. score11 = 0;
  19. score12 = 0;
  20. score13 = 0;
  21. score14 = 0;
  22. score15 = 0;
  23. score16 = 0;
  24. score17 = 0;
  25. score18 = 0;
  26. score19 = 0;
  27. score20 = 0;
  28. name1 = "";
  29. name2 = "";
  30. name3 = "";
  31. name4 = "";
  32. name5 = "";
  33. name6 = "";
  34. name7 = "";
  35. name8 = "";
  36. name9 = "";
  37. name10 = "";
  38. name11 = "";
  39. name12 = "";
  40. name13 = "";
  41. name14 = "";
  42. name15 = "";
  43. name16 = "";
  44. name17 = "";
  45. name18 = "";
  46. name19 = "";
  47. name20 = "";
  48. loadVariablesNum("scores.txt",0);
  49. pourcent = 100 * loaded / total;
  50. pDisplay = Math.floor(pourcent) + "%";
  51. lDisplay = Math.floor(loaded / 1024) + " Ko / " + Math.floor(total / 1024) + " Ko";
  52. vDisplay = Math.floor(loaded / 1024 / t) + " Ko/s";
  53. if(pourcent == 100)
  54. {
  55.    gotoAndStop(3);
  56. }
  57. else
  58. {
  59.    barre.gotoAndStop(Math.floor(pourcent));
  60. }
  61.