this is the code i wrote:
stop();
var res:LoadVars=new LoadVars();
var cmd=new LoadVars();
res.onLoad= function(success:Boolean){
if(success){
var x:XML=new XML(unescape (res.toString()));
xmldata1.text=x.firstChild.childNodes[0].childNodes[0].toString();
xmldata2.text=x.firstChild.childNodes[1].childNodes[0].toString();
xmldata3.text=x.firstChild.childNodes[2].childNodes[0].toString();
xmldata4.text=x.firstChild.childNodes[3].childNodes[0].toString();
xmldata5.text=x.firstChild.childNodes[4].childNodes[0].toString();
_root.gotoAndPlay(“pra_final”);
}else{
_root.gotoAndPlay(“home”);
}
}
cmd.mode=“transaction”;
cmd.type=jenis_transaksi.text;
cmd.price=jenis_pulsa.text;
cmd.telp=phone_number.text;
cmd.sendAndLoad(“http://127.0.0.1:9669”,res,“GET”);
Problem:
sendAndLoad timer only works for 30 sec,
because server locking process for handling multiple hardware IO operation until completed (it might take time about 1-3 mins for server giving the response)
How do i set the time out or can i set the time out into unlimited time for sendAndLoad function in AS2?
cheers guys for your help