# sendAndLoad: set timeout?

**URL:** <https://forum.kirupa.com/t/sendandload-set-timeout/318084>\
**Category:** flash\
**Created:** [January 10, 2011, 10:32am UTC](https://forum.kirupa.com/t/sendandload-set-timeout/318084 "2011-01-10T10:32:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yusnan](https://avatars.discourse-cdn.com/v4/letter/y/9dc877/32.png) [@yusnan](https://forum.kirupa.com/u/yusnan)\
**Post date:** [January 10, 2011, 10:32am UTC](https://forum.kirupa.com/t/sendandload-set-timeout/318084/1 "2011-01-10T10:32:50Z")

</div>

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](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 🙂
