Setting text from input box to dynamic

Is there a way to display text in a dynamic text field taken from a input text field?

Im pretty sure that would work, but youll need to update the flash-file after having put in the text (ex. use an “update”-button).

Ex:

on (press){
txtBoxDynamic.txt = txtBoxInput.text;
}

You want it to be syncronized? (as you type in the input text it will appear in the dynamic textfield?)

it would be better but not necessary

Here

[AS]inputTextField.onChanged = function() {
dynamicTextField.text = this.text;
};[/AS]
http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary752.html