# \[FMX04\]loadVariables need to be run twice

**URL:** <https://forum.kirupa.com/t/fmx04-loadvariables-need-to-be-run-twice/174619>\
**Category:** flash\
**Created:** [January 7, 2006, 7:45am UTC](https://forum.kirupa.com/t/fmx04-loadvariables-need-to-be-run-twice/174619 "2006-01-07T07:45:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kdd](https://avatars.discourse-cdn.com/v4/letter/k/ecb155/32.png) [@kdd](https://forum.kirupa.com/u/kdd)\
**Post date:** [January 7, 2006, 7:45am UTC](https://forum.kirupa.com/t/fmx04-loadvariables-need-to-be-run-twice/174619/1 "2006-01-07T07:45:14Z")

</div>

i’m calling a php file, which is supposed to make an xml file. whenever i call the php file using this syntax, most of the time i get “cannot load file” in the xml loading section, but this updates the xml file.

```auto
 loadVariables("http://localhost/file.php",this,"POST");[/AS]
 
but when i do it this way.

```

loadVariables(“[http://localhost/file.php",NONE,"POST](http://localhost/file.php%22,NONE,%22POST)”);[/AS]

the “cannot load file” messge doesn’t get displayed, and the file loads perfectly, but this doesn’t update the xml file.

so everytime i have to first use “this” and then “none”.

what am i doing wrong? what can i do so that whenever php is called, it’ll update the xml file, and still load in the swf. please help, i’ve been trying to solve this problem for a long time.
