Looking your code, I think there is no reason for use the Object LoadVars. Moreover, you can use getURL instead of loadVariablesNum, because the script only sends a mail, it doesn´t return anything that you need to use.
The object LoadVars has very useful events and methods (like the XML Object)
- To construct a LoadVars:
carga=new LoadVars();
- to load something
carga.load("
http://www.estudiobaires.com/archivo.txt");
- to use an useful event
carga.onLoad = function(){
gotoAndPlay(3);
}
- You can send and recieve requests. In the mail form with a PHP who returns some message in a variable $string like "Thanks for contact" (succes) or "Whe have a problem with the server" (fails), you can catch the variable and show in a clip with a dynamic text
carga.sendAndLoad("mail.php", "response", "POST");
And use the event onLoad to catch the response an show it and so on ...
-Other methods: getBytesTotal (useful for preloading), toString and others
Good Luck
Jorge Solis
www.estudiobaires.com