# TextLayout xmlText not loading in Firefox

**URL:** <https://forum.kirupa.com/t/textlayout-xmltext-not-loading-in-firefox/296885>\
**Category:** flash\
**Created:** [September 22, 2009, 9:32am UTC](https://forum.kirupa.com/t/textlayout-xmltext-not-loading-in-firefox/296885 "2009-09-22T09:32:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rulz1980](https://avatars.discourse-cdn.com/v4/letter/r/b3f665/32.png) [@rulz1980](https://forum.kirupa.com/u/rulz1980)\
**Post date:** [September 22, 2009, 9:32am UTC](https://forum.kirupa.com/t/textlayout-xmltext-not-loading-in-firefox/296885/1 "2009-09-22T09:32:23Z")

</div>

Hi,

I want to dynamically insert text into a TextLayout component.  
I read the contents of the XML at runtime and put them into TextLayout.xmlText.

Everything works fine in the standalone Flash Player and in Internet Explorer, but in Firefox the read text is empty. I am not using any backslashes in paths…

Here’s the code that reads the XML:

```auto

var urlLoader: URLLoader = new URLLoader();
urlLoader.addEventListener(Event.COMPLETE, done);
urlLoader.load(new URLRequest("content/page1.xml"));

function done(e: Event): void {
    textLayout.xmlText = urlLoader.data.split("
").join("");
    textLayout.verticalScrollPolicy = "auto";
}

```

Here’s the FLA, HTML, XML’s etc: [http://dl.getdropbox.com/u/1927613/tl.rar](http://dl.getdropbox.com/u/1927613/tl.rar)

Thank you in advance for any kind help or advice.
