Skip to main content
Known Participant
February 14, 2011
Answered

Input Text: Character Name

  • February 14, 2011
  • 1 reply
  • 439 views

hey all

right now im working with a little character info menu where you type in the characters name, choice of gender etcetc.

my only problem is that i cant figure out of to carry whatever name the player types to another frames text box.


Example: if i typed Flash in the Character Name input text to have the same name that i typed show up on another text in a different frame.

thanks

This topic has been closed for replies.
Correct answer kglad

assign the text property of your textfield to a variable.  that variable will exist even when the textfield does not:

var nameS:String=your_tf.text;

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
February 14, 2011

assign the text property of your textfield to a variable.  that variable will exist even when the textfield does not:

var nameS:String=your_tf.text;

Known Participant
February 15, 2011

ah thank you it worked. i have no idea why i didnt think of variables..

kglad
Community Expert
Community Expert
February 15, 2011

you're welcome.