Can someone please set me straight on dynamic textbox?
Hi,
Sorry this is so long!
I tutor in english/maths and use specialized software (written in DOS) which won't work in Vista. I want to see if KM/Flash can be used to replicate the work. Trouble is I don't know actionscript! I hope someone can give me pointers a bit at a time. Problem: I want to use a textbox to go to a frame when the correct word is entered and the "enter" key is pushed. I made a textbox labelled "answer" in frame 4.
var a is there to show the correct score on frame 5, frame 6 is if incorrect and goes back to frame1
var a = 0;
var txt1 = "";
on (release, keyPress "enter"){if (txt1.txt = "cat"){
gotoAndStop (5); } else {
gotoAndStop (6); }
}
When I play "in browser" it doesn't go to frame5 or 6 after I enter cat and hit the enter key.
If anyone can help that would be greatly appreciated.
ja :eek:
some more questions on the textbox
Thank you for the help so far. Why does this code only work with no tweens? Can you also show me where I'm going wrong with this, please.
If student is wrong - var bad_word = "moo" I then have a textbox endtestvar and use
endtestvar = Array("these words" + bad_word + bad_word1 + bad_word3 + bad_word4 + bad_word5 +bad_word6 + bad_word7 + bad_word8 + bad_word9);
_level0endtestvar=endtestvar
I get "undefined" for every word the student gets right. Also would like the result spread out over a couple lines. Do I use ',' ???
ja