# Problem loading xml data into a text area

**URL:** <https://forum.kirupa.com/t/problem-loading-xml-data-into-a-text-area/236166>\
**Category:** Uncategorized\
**Created:** [August 17, 2007, 6:51pm UTC](https://forum.kirupa.com/t/problem-loading-xml-data-into-a-text-area/236166 "2007-08-17T18:51:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jookhouse](https://avatars.discourse-cdn.com/v4/letter/j/ad7895/32.png) [@jookhouse](https://forum.kirupa.com/u/jookhouse)\
**Post date:** [August 17, 2007, 6:51pm UTC](https://forum.kirupa.com/t/problem-loading-xml-data-into-a-text-area/236166/1 "2007-08-17T18:51:44Z")

</div>

i have no problem loading xml data into a text area in flash…

but when i place the text area inside a movie clip, it no longer can get the xml file. any idea why?

here is the code:

myText.html = true;  
myText.wordWrap = true;  
myText.multiline = true;  
myText.label.condenseWhite=true;

//load css  
kungFuStyle = new TextField.StyleSheet();  
kungFuStyle.load(“kungfu.css”);  
myText.styleSheet = kungFuStyle;

//load in XML  
kungFuContent = new XML();  
kungFuContent.ignoreWhite = true;  
kungFuContent.load(“kungfu.xml”);  
kungFuContent.onLoad = function(success)  
{  
if(success)  
{  
myText.text = kungFuContent;  
}  
}
