# Variable text box

**URL:** <https://forum.kirupa.com/t/variable-text-box/42743>\
**Category:** Uncategorized\
**Created:** [February 12, 2004, 1:13pm UTC](https://forum.kirupa.com/t/variable-text-box/42743 "2004-02-12T13:13:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mako](https://avatars.discourse-cdn.com/v4/letter/m/ecc23a/32.png) [@mako](https://forum.kirupa.com/u/mako)\
**Post date:** [February 12, 2004, 1:13pm UTC](https://forum.kirupa.com/t/variable-text-box/42743/1 "2004-02-12T13:13:15Z")

</div>

This might be a simple one, but I could not find a thread…

I have a form that captures a users name with the variable firstname, it then goes onto the next frame where I need to call the variable again inside another mc called grey.

but when I submit the form variable “firstname” it does not appear is it cos its sitting inside another MC.

Any sug.

Mako

:sigh:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 12, 2004, 2:12pm UTC](https://forum.kirupa.com/t/variable-text-box/42743/2 "2004-02-12T14:12:47Z")

</div>

If you’re trying to call the firstname variable, let’s say from \_root, and it’s in the movie clip named myMovieClip then you have to target:

myMovieClip.firstname

or

this.myMovieClip.firstname

If you want to call the var from another movie clip, just use this targeting:

\_root.myMovieClip.firstname

I hope this helps.  
It’s pretty easy when you get used to it.

Try these tutorials out for more info about targeting:

[http://www.kirupa.com/developer/actionscript/tricks/scope.htm](http://www.kirupa.com/developer/actionscript/tricks/scope.htm)

[http://www.kirupa.com/developer/actionscript/tricks/relativeaddressing.htm](http://www.kirupa.com/developer/actionscript/tricks/relativeaddressing.htm)

[http://www.kirupa.com/developer/actionscript/tricks/root\_parent\_this.htm](http://www.kirupa.com/developer/actionscript/tricks/root_parent_this.htm)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 12, 2004, 3:22pm UTC](https://forum.kirupa.com/t/variable-text-box/42743/3 "2004-02-12T15:22:40Z")

</div>

thanx man … that work prefectly …

🙂
