|
-
Is there a question? Are you receiving errors? What are they? Did you read them?
The problem is probably that you are getting something like "undefined property NameTextField". And that is because there is no property called NameTextField. And that is because NameTextField is a child of your menu, not your game.
You need to save the name entered in the menu somewhere accessible to the game. Then use that saved value.
It's a bad idea to use textfields as the actual places to store your information. TextFields are just UI. The UI should reflect the abstract state of your models (game, menu, other classes). That is, store the name in a String variable, and the time in another variable (probably Number which stores the number of milliseconds). Use those variables to drive the UI.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|