[RESOLVED] [fCS3] Why?! Just why?!
Sorry about the unclearness of the title but that's the question i have been asking myself all day!
I am making a part in my flash game where you can select the level. I have made an input text box and set the var name to levelinput. Then i made a button and gave it this code:
Code:
on(release, keyPress"<Enter>"){
if(levelinput.toLowerCase eq "tutorial"){
gotoAndStop("Scene 2", "tutorialstart");
}else if(levelinput.toLowerCase eq "level1"){
gotoAndStop("Scene 3", "hsstart");
}else{
gotoAndStop("Scene 1", "invalidlvl");
}
}
for some reason i always get the invalidlvl frame. I would really appreciate some help guys, cos i haven't even done the main part of the game yet, and i don't like moving on while things don't work.
oh, btw, i made sure the frame labels are correct and used the script assist to confirm it. nothing wrong with the code... I followed a tut on this kind of thing and that didn't work either.... :(