Variable text box

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:

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/relativeaddressing.htm

http://www.kirupa.com/developer/actionscript/tricks/root_parent_this.htm

thanx man … that work prefectly …

:slight_smile: