# Loading text issue

**URL:** https://forum.kirupa.com/t/loading-text-issue/207191
**Category:** Uncategorized
**Created:** [November 15, 2006, 2:04pm UTC](https://forum.kirupa.com/t/loading-text-issue/207191 "2006-11-15T14:04:55Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![fr\_ode](https://avatars.discourse-cdn.com/v4/letter/f/9d8465/32.png) [@fr\_ode](https://forum.kirupa.com/u/fr_ode)
#### Post date: [November 15, 2006, 2:04pm UTC](https://forum.kirupa.com/t/loading-text-issue/207191/1 "2006-11-15T14:04:55Z")

</div>

hi! I’ve made a simple code to load some news into a dynamic text-field:

```auto
stop();
System.useCodePage = true;
loadText = new LoadVars();
loadText.load("xml/news.xml");
loadText.onLoad = function(success) {
    if (success) {
        // trace(success);
        newsBox.html = true;
        newsBox.htmlText = this.myNews;
    }
};

```

the xml-file reads:

```auto
myNews= bla bla bla bla bla

```

it works fine alone, but when I load the swf into my main site I keep getting “undefined”  
any ideas what I’m doing wrong?
