# Loading xml data in AS3

**URL:** <https://forum.kirupa.com/t/loading-xml-data-in-as3/321498>\
**Category:** Uncategorized\
**Created:** [April 21, 2011, 7:47am UTC](https://forum.kirupa.com/t/loading-xml-data-in-as3/321498 "2011-04-21T07:47:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wajaja](https://avatars.discourse-cdn.com/v4/letter/w/a5b964/32.png) [@wajaja](https://forum.kirupa.com/u/wajaja)\
**Post date:** [April 21, 2011, 7:47am UTC](https://forum.kirupa.com/t/loading-xml-data-in-as3/321498/1 "2011-04-21T07:47:38Z")

</div>

Hi,

I want to update a dynamic textfield in AS3 by loading file.xml. This is working fine when loading the swf offline or online. The “?cache=” bit and date and time here below are there to insure that the cache is emptied and the xml is reloaded.

AS3 code  
///  
var request:URLRequest = new URLRequest(“[http://www.xxx.com/maps\_test/file.xml](http://www.xxx.com/maps_test/file.xml)” + “?cache=” + new Date().getTime());  
loader.load(request);  
///

However, when embedding the SWF in a PHP page requiring SQL identification (using mysql\_pconnect), the SWF animation still plays correctly but file.xml is not loaded anymore and the textfield does not update.

Any idea why that is? Do I need to authorize the data from file.xml to be sent through PHP as well because of the previous SQL identification request? Any tips on the code I should use or tutorials?
