home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2001 October / macformat-108.iso / Tutorials / Flash game tutorial / spot the difference final.swf / scripts / DefineButton2_17 / BUTTONCONDACTION on(release, keyPress Enter).as
Encoding:
Text File  |  2001-08-01  |  415 b   |  27 lines

  1. on(release, keyPress "<Enter>"){
  2.    if(password eq "level1")
  3.    {
  4.       gotoAndStop(6);
  5.    }
  6.    else if(password eq "level2")
  7.    {
  8.       gotoAndStop(7);
  9.    }
  10.    else if(password eq "level3")
  11.    {
  12.       gotoAndStop(8);
  13.    }
  14.    else if(password eq "level4")
  15.    {
  16.       gotoAndStop(9);
  17.    }
  18.    else if(password eq "")
  19.    {
  20.       gotoAndStop(6);
  21.    }
  22.    else
  23.    {
  24.       gotoAndStop(6);
  25.    }
  26. }
  27.