# Unable to load xml in as2-flash-app for mp3-player (IAudio9 by Cowon)

**URL:** <https://forum.kirupa.com/t/unable-to-load-xml-in-as2-flash-app-for-mp3-player-iaudio9-by-cowon/321564>\
**Category:** Uncategorized\
**Created:** [April 23, 2011, 6:10pm UTC](https://forum.kirupa.com/t/unable-to-load-xml-in-as2-flash-app-for-mp3-player-iaudio9-by-cowon/321564 "2011-04-23T18:10:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![don\_busi](https://avatars.discourse-cdn.com/v4/letter/d/85f322/32.png) [@don\_busi](https://forum.kirupa.com/u/don_busi)\
**Post date:** [April 23, 2011, 6:10pm UTC](https://forum.kirupa.com/t/unable-to-load-xml-in-as2-flash-app-for-mp3-player-iaudio9-by-cowon/321564/1 "2011-04-23T18:10:44Z")

</div>

Hi everybody,

I’m trying to create a flash-app for my IAudio9 media player. Apparently it has a flash7-player on it.

For my app I need to load an xml. My code works fine on my PC, but on the mp3-player it is unable to load the xml.

Here is what I do:

```php

var xmlData:XML = new XML();
xmlData.ignoreWhite=true;
xmlData.onLoad = function(success:Boolean) { 
         MyApp.processTheLoadedXML(success, this);
    }
xmlData.load("settings.xml");

```

In the static function MyApp.processTheLoadedXML(success, xmlData) I want to process the loaded data.

But for some reason no data is loaded. ☹

I tried the following as well, which worked fine:

```php

var xmlData:XML = new XML("<?xml version='1.0' standalone='yes'?><mydata>bla</mydata>");
...

```

but I can’t include the whole xml as a string into my as2-file.

Does anyone have a clue why my code doesn’t work on my mp3-player?! And how I can get it to work?

Thanx for any help!  
Don

PS:I was able to load params from a file with loadVars and “param=value&param=value” in the file. But that won’t do for my xml-data. ☹
