# \[FMX2004\] - get variable to textfield on another MC

**URL:** <https://forum.kirupa.com/t/fmx2004-get-variable-to-textfield-on-another-mc/72832>\
**Category:** flash\
**Created:** [December 9, 2004, 6:04pm UTC](https://forum.kirupa.com/t/fmx2004-get-variable-to-textfield-on-another-mc/72832 "2004-12-09T18:04:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![forwardtrends](https://avatars.discourse-cdn.com/v4/letter/f/cab0a1/32.png) [@forwardtrends](https://forum.kirupa.com/u/forwardtrends)\
**Post date:** [December 9, 2004, 6:04pm UTC](https://forum.kirupa.com/t/fmx2004-get-variable-to-textfield-on-another-mc/72832/1 "2004-12-09T18:04:27Z")

</div>

Okay I’ve got a main movie which loads another MC that contains a listbox. The user selects the listbox and is on their way back to the main movie but I need to display their selection throughout the rest of the timeline.

I’ve created a dynamic textfield with var name of “jobdisplay”

Here is the code that processes the variables from the externally loaded listbox and processes it.:

```php
on(release){

  formData = new LoadVars();	
	formData.jobtitle = "";
 formData.id = "";

	formData.jobtitle = _root.loader.comboloader.listBox.getSelectedItem().label;

 formData.id = _root.id;
 jobtitle = formData.jobtitle;
 id = formData.id;
 
 gotoAndPlay(61);

 formData.sendAndLoad("process_jobtitle.asp", formData, "POST"); 
 }

```

I tried adding a

```php
jobdisplay.htmlText = formData.jobtitle 

```

and

```php
 
jobdisplay.htmlText = _root.loader.comboloader.listBox.getSelectedItem().label;

```

But nothing is working for me… can anyone see anything I’m missing?

Thanks!

Aaron  
[www.forwardtrends.com](http://www.forwardtrends.com)
