home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / sky-chopper.swf / scripts / frame_220 / DoAction.as
Encoding:
Text File  |  2005-09-29  |  590 b   |  24 lines

  1. i = 1;
  2. while(i <= levelsum)
  3. {
  4.    currentLevel = eval("file_" + i);
  5.    currentAuthor = eval("author_" + i);
  6.    levelChooser.addItem(currentLevel + " (by " + currentAuthor + ")",currentLevel);
  7.    i++;
  8. }
  9. clippyListener = new Object();
  10. clippyListener.click = function(evt)
  11. {
  12.    levelfile = levelChooser.getValue();
  13.    play();
  14. };
  15. prcdBtn.addEventListener("click",clippyListener);
  16. clippyListener2 = new Object();
  17. clippyListener2.click = function(evt)
  18. {
  19.    gotoAndStop("options");
  20. };
  21. optBtn.addEventListener("click",clippyListener2);
  22. levelChooser.selectedIndex = 0;
  23. stop();
  24.