# MC - Inputting from text field

**URL:** https://forum.kirupa.com/t/mc-inputting-from-text-field/192981
**Category:** Uncategorized
**Created:** [July 3, 2006, 10:31am UTC](https://forum.kirupa.com/t/mc-inputting-from-text-field/192981 "2006-07-03T10:31:06Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![wilhem](https://avatars.discourse-cdn.com/v4/letter/w/e8c25b/32.png) [@wilhem](https://forum.kirupa.com/u/wilhem)
#### Post date: [July 3, 2006, 10:31am UTC](https://forum.kirupa.com/t/mc-inputting-from-text-field/192981/1 "2006-07-03T10:31:06Z")

</div>

Hi;

I am trying to input from the textfields which are attached to mc’s that are created using actionscript. I have several mc’s and I want to get the text from these textfields (which are defined as ‘Input Text’) which are entered by the user. But my problem is I don’t know the active element which could be used for defining the mc’s that I created for later use. Shall I use the ‘var’ element or ‘Instance Name’ element for getting the text from the textfields?

Ex:

I have a text field inside mc that is created by this command

```auto
 name = Layer_Movie.attachMovie("LetBlack",name,t++,{_x:100, _y:100 }); 

```

Here I create a mc and give ‘name’ to it. I have another mc inside the LetBlack mc that is used as a template for actionscripting. It’s ‘Instance name’ is Letter. And I have a text field inside the Letter mc I have that’s ‘var’ name is let. But I can’t get the text that is entered inside this text field. One of my friend’s advice is this, to use focus commands in order to reach the text field. Please help;

Thanks anyway…
