# Need help with loadxml

**URL:** <https://forum.kirupa.com/t/need-help-with-loadxml/211419>\
**Category:** Uncategorized\
**Created:** [December 31, 2006, 10:10pm UTC](https://forum.kirupa.com/t/need-help-with-loadxml/211419 "2006-12-31T22:10:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mita981](https://avatars.discourse-cdn.com/v4/letter/m/82dd89/32.png) [@mita981](https://forum.kirupa.com/u/mita981)\
**Post date:** [December 31, 2006, 10:10pm UTC](https://forum.kirupa.com/t/need-help-with-loadxml/211419/1 "2006-12-31T22:10:33Z")

</div>

i have a javascript code that creates chaining drown down list and the end result is an xml file name that gets sent to a dynamic text box on my flash file with setvariable. everything works fine the name appears in my text box on the swf file. now i want to load that xml file name so i use

myDisplay.loadXML(myText.text);

but for some reason nothing gets loaded. i am assuming that some how this needs to get refreshed or something but i can’t fine anything online that would point me to the right direction. i know if i manually put the xml file name it works.

myDisplay.loadXML(“myXml.xml”);

does anyone know what i am doing wrong here?
