all groups > flash actionscript > april 2004 >
You're in the

flash actionscript

group:

Input Text box problem



Input Text box problem BVKimball
4/10/2004 4:46:18 PM
flash actionscript: Hi,
I have a input text box(will say i named the VAR "input") and i have a
movie clip set up so with a createTextField in it for my output. basically i
cant figure out how to take my input text and put it into my output field. i
had it set up like:
on(keyPress"<enter>"){
output.text = input +"***"+ output.text;
}
for some reason the only thing that is goes into the output field is the
"***". I know that the problem is that i am not using the var right.

all my code is in a blank movie clip on the same layer as "input". I am using
Flash MX. I really cant figure out what i am doing wrong.
Re: Input Text box problem aparna
4/20/2004 5:16:34 PM
Hi BVKimball,

I have some lines of code which should help you...
As I understand your input field text has to appear in output text field on
pressing ENTER...

on(keyPress"<enter>"){
"movieclip instance's name".outputfieldname.text =
_root.inputfieldname.text ;
};
This should work fine...




AddThis Social Bookmark Button