# \[FMX2004\] - variables work on test, not in html

**URL:** <https://forum.kirupa.com/t/fmx2004-variables-work-on-test-not-in-html/130695>\
**Category:** Uncategorized\
**Created:** [December 7, 2004, 5:50pm UTC](https://forum.kirupa.com/t/fmx2004-variables-work-on-test-not-in-html/130695 "2004-12-07T17:50:00Z")\
**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 7, 2004, 5:50pm UTC](https://forum.kirupa.com/t/fmx2004-variables-work-on-test-not-in-html/130695/1 "2004-12-07T17:50:00Z")

</div>

I’ve got a main movie (main) loading another movie (forms) that includes a listbox (listBox) inside a empty movieclip (comboloader)… When I test this out using a getURL?variable="+ \_root.variable it works fine in the flash test but when I run it from the site the variable is “undefined”

Here’s my code for the button which makes all this happen.

(all variables are set to global)

on(release){

formData = new LoadVars();

formData.jobtitle = “”;

formData.id = “”;

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

jobtitle = formData.jobtitle;  
id = formData.id;

getURL(“begin\_demo.asp?jobtitle=”, “\_blank”);  
getURL(“process\_jobtitle.asp?1=” + \_root.jobtitle +"&2=" + \_root.id, “\_blank”)  
}

am I missing a \_parent somewhere? Is there any reason this thing would work standalone (in flash) and not in the final file (when its loaded into another clip)

Thanks!
