# \[mx04\] external xml wont load

**URL:** <https://forum.kirupa.com/t/mx04-external-xml-wont-load/200412>\
**Category:** flash\
**Created:** [September 12, 2006, 12:36am UTC](https://forum.kirupa.com/t/mx04-external-xml-wont-load/200412 "2006-09-12T00:36:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jablinsk](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@Jablinsk](https://forum.kirupa.com/u/Jablinsk)\
**Post date:** [September 12, 2006, 12:36am UTC](https://forum.kirupa.com/t/mx04-external-xml-wont-load/200412/1 "2006-09-12T00:36:55Z")

</div>

First of all, I’d like to say sorry for posting this more than once in a different thread.

If I have the xml load directly from the flash (ie, I have it go directly to the site, instead of through ‘proxy.php’), it will load the data from the xml, but when I have it go through a php script, nothing shows up, the text file is completely blank, it doesnt even say “Couldn’t Load”.

here is my flash file script:  
[LEFT]

```auto
[LEFT]xmlGetBtn.onRelease = function(){
var xmlProxy:XML = new XML();
xmlProxy.ignoreWhite = true;
xmlProxy.onLoad = function(bSuccess:Boolean):Void {
    if(bSuccess) {
        xmlDataBox.text = this;
    }
    else {
        xmlDataBox = "Couldn't Load";
    }
};
xmlProxy.load("Proxy.php")
}[/LEFT]

```

```
[/LEFT]

```

and the php script looks like:  
[LEFT]

```
 		 		[LEFT] 			 

```

```php
<?php
$dataURL = "http://www.w3schools.com/xml/simple.xml";
echo readfile($dataURL);
?>

```

```
	[/LEFT]
	 	

       [/LEFT]

```

I have tried every tutorial and script I could find, but nothing seems to work.  
Also, is it possible to load external data into flash from a .jsp?

Thanks alot if anyone can help me try to solve this problem.
