TextInput: error when checking text
I have seven frames with TextInput fields and I'm getting random errors. you type the text, and when you hit enter, it checks the input and goes to the next frame if correct. Sometimes a certain frame will work and other times it will jump back a few frames. Sometimes it will just erase the text that was typed. My file was working fine yesterday and now frame 10 is messed up (again). Debug tells me a certain line of code is bad even tho it worked before. Sometimes debug will actually fix certain errors. Copying code from a different frame will fix it sometimes. Sometimes changing the text it looks for will fix it. Is Flash just unstable with textinputs? I tried other coding and it still fails on same frame.
stage.focus = ping_10;
stage.addEventListener(KeyboardEvent.KEY_DOWN, myKeyDown10);
function myKeyDown10(e: KeyboardEvent): void {
if (e.keyCode == Keyboard.ENTER && ping_10.text == "asdf") {
gotoAndStop(11);
}
}
