# AS2 \_root XML load problem

**URL:** https://forum.kirupa.com/t/as2--root-xml-load-problem/283283
**Category:** flash
**Created:** [March 4, 2009, 2:20pm UTC](https://forum.kirupa.com/t/as2--root-xml-load-problem/283283 "2009-03-04T14:20:20Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![lisa\_k](https://avatars.discourse-cdn.com/v4/letter/l/e480ec/32.png) [@lisa\_k](https://forum.kirupa.com/u/lisa_k)
#### Post date: [March 4, 2009, 2:20pm UTC](https://forum.kirupa.com/t/as2--root-xml-load-problem/283283/1 "2009-03-04T14:20:20Z")

</div>

Hello everyone,  
I have a problem with a news component that loads data from an XML file and it works perfectly well on its own, but when I use it in my existing project (insert it in the main movie clip), text doesn’t show. I know I need to change something in AS2 .

Maybe someone can help me to figure this out, as it’s getting frustrating not to have it working .

The code that loads XML (it’s hard to get lost here, but I did).

newsViewer = this;  
function loadXML(loaded) {  
if (loaded) {  
var newsTitle = this.firstChild.attributes.newsTitle;  
header\_txt.htmlText = “\<b\>”+newsTitle+"\</b\>";//sets header text  
var item = this.firstChild.childNodes;//this collects the news items from the xml into the item variable  
var newsTitle = this.firstChild.attributes.newsTitle;  
headingColor = this.firstChild.attributes.headingColor;//this is the colour of headings, rollOver effects, buttons, etc.  
linkColor = this.firstChild.attributes.linkColor;//this is the color of links  
setColor();  
newsViewer.box.\_width = this.firstChild.attributes.width-20;  
newsViewer.box.\_height = this.firstChild.attributes.height-20;  
setSizes();

Will appreciate your help.
