Skip to main content
Participant
July 22, 2009
Answered

Added dynamic text; How do I stop variable name from showing?

  • July 22, 2009
  • 1 reply
  • 656 views

I am creating a simple game for kids.  On the first page, I added an "input text" field for their first name.  I called the variable firstname.

When they move to the next page, I used a "dyanamic text" field so I can call them by name on this page.  It works.  However, When I test the game, on the first page, where the firstname is input, it shows    _level0.firstname          instead of just a blank space for them to input their name.

I know I fixed this in the past and it was something simple, but I can't remember how to do it.  I'd appreciate anyone's help!

Thanks.

This topic has been closed for replies.
Correct answer kglad

don't assign a variable name for the textfield. or, at a minimum, don't use the same name for the textfield's variable and instance name.

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
July 22, 2009

don't assign a variable name for the textfield. or, at a minimum, don't use the same name for the textfield's variable and instance name.

Participant
July 22, 2009

Thank you!  I had assigned a name to the textbox.  When I deleted that it worked fine!

kglad
Community Expert
Community Expert
July 22, 2009

you should use the instance name and remove the variable name.  that's a better solution.