[FMX04]loadVariables need to be run twice

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.

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

loadVariables(“http://localhost/file.php",NONE,"POST”);[/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.