I tested one of my old pages, where I now use sendAndLoad method.
From this site I dont recieve success == true.
:?: is how can I find out, what problem with server is.
From other site - other server, which I tested I recieve the success == true.
var submitListener:Object = new Object ();
submitListener.click = function (evt:Object)
{
var result_lv:LoadVars = new LoadVars ();
result_lv.onLoad = function (success:Boolean)
{
if (success)
{
result_ta.text = "Hello";
}
else
{
result_ta.text = "Error connecting to server.";
}
};
var send_lv:LoadVars = new LoadVars ();
send_lv.name = name_ti.text;
send_lv.sendAndLoad ("http://www.penzionuhradku.cz", result_lv, "POST");
};
submit_button.addEventListener ("click", submitListener);