[COLOR=black][FONT=Arial]:hangover: Hi All,:hangover: [/FONT][/COLOR]
[COLOR=black][FONT=Arial] [/FONT][/COLOR]
[COLOR=black][FONT=‘Times New Roman’]Here is my dilemma. I am designing an e-learning activity where the user enters a script and presses the enter key, if their data string is correct it takes them to the next frame. Once they have completed the exercise, they click a button to return to do it again; you know the old repetition helps learn theory. The problem is when the Frame loads, the data from the previous attempt is still there, I need to clear this, I have tried adding the following code as suggested by some: PLEASE send me your thoughts on this issue.[/FONT][/COLOR]
onFrameLoad.loginScript3.text="";
onFrameLoad.inputbox.text = “”;
mySharedObject.clear();
Key.addListener(this);
function onKeyUp () {
var key:Number = Key.getCode();
switch (key) {
case (13): // Enter Key
login == loginScript3;
if (loginScript3 == “HELLO XO1234,CUSTREL.TAHP”) {
inputbox.text = “”;
gotoAndPlay(“login_practices2”);
} else {
loginScript3.text="";
gotoAndPlay(“login_error5”);
}
break;
default:
break;
}
}