# Displaying Input Text in a different class?

**URL:** <https://forum.kirupa.com/t/displaying-input-text-in-a-different-class/320854>\
**Category:** flash\
**Created:** [April 3, 2011, 7:43pm UTC](https://forum.kirupa.com/t/displaying-input-text-in-a-different-class/320854 "2011-04-03T19:43:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kbowk](https://avatars.discourse-cdn.com/v4/letter/k/9de053/32.png) [@kbowk](https://forum.kirupa.com/u/kbowk)\
**Post date:** [April 3, 2011, 7:43pm UTC](https://forum.kirupa.com/t/displaying-input-text-in-a-different-class/320854/1 "2011-04-03T19:43:57Z")

</div>

Hi there, I have an Introduction screen class that asks for name entry, when the start button is clicked I have managed it to trace the name that is entered.

```auto
private function startButton(event:MouseEvent):void {
			trace("Start button clicked.")
			nameEntry = enterName.text;
			trace("Hello " + nameEntry);
			MovieClip(parent).MainMenu();
		}

```

However, I want to recall this entered name and display it in a dynamic text field in my MainMenu page, which uses a separate class. I don’t know how to pass the string into a different class.

Any help would be useful.

Thanks.
