# Input Data Help Needed ASAP

**URL:** <https://forum.kirupa.com/t/input-data-help-needed-asap/232661>\
**Category:** flash\
**Created:** [July 16, 2007, 7:08pm UTC](https://forum.kirupa.com/t/input-data-help-needed-asap/232661 "2007-07-16T19:08:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rcaira](https://avatars.discourse-cdn.com/v4/letter/r/f04885/32.png) [@rcaira](https://forum.kirupa.com/u/rcaira)\
**Post date:** [July 16, 2007, 7:08pm UTC](https://forum.kirupa.com/t/input-data-help-needed-asap/232661/1 "2007-07-16T19:08:11Z")

</div>

[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;

}  
}
