alright, so im making a text adventure, and im trying to do it all on one frame with a single huge switch case.
Buuuutt, i have a problem.
i have an inputbox (userInput), a button (sendBtn), and an dynamic output field (storyText).
In layer one, frame one, i have
stop();
Mouse.show();
uinput = userInput.getText();
sendBtn.onRelease = function(){
switch(uinput){
case “bob” : trace(“hello”);break;
}
and for some reason it will never send back that trace.
However, if i replace the switch case with an if,
it works perfectly.
What am i doing wrong?
EDIT: scratch all that- i figured it out.