Xionraseri
02-23-2008, 11:23 PM
Im a complete noob to coding, and following code sucks... Can someone please tell me how to fix this code? I am trying to create a type command game, and the input is an input text box that the user types in.
btnBack.onRelease = function (){
switch(input){
case input = help:
_root.gotoAndStop("Help");
break;
case input = checkdoor:
_root.gotoAndStop("CheckDoor");
break;
} // end switch
}// end release
btnBack.onRelease = function (){
switch(input){
case input = help:
_root.gotoAndStop("Help");
break;
case input = checkdoor:
_root.gotoAndStop("CheckDoor");
break;
} // end switch
}// end release