Input text resets when looped

how would i achieve that the text i entered in the input textbox in swf remained the same after the loop and wouldn’t reset itself?
thanks