Groups | Blog | Home
all groups > flash data integration > december 2005 >

flash data integration : timeout function on sendandload



james
12/9/2005 11:05:43 AM
Hi is there anyway to set a timeout period when using a sendAndLoad ->
onLoad method or is the only way to use sendAndLoad and then manually create
a loop to check to see if it's loaded within a certain period of time?
(flash 6 by the way).

thanks
James

Motion Maker
12/9/2005 8:40:17 PM
You could use setInterval in various ways


mySend_lv.onLoad(success)
{
clearInterval(intervalId);


}

function timeOut():Void
{
trace("Times up!");
clearInterval(intervalId);
}

intervalId = setInterval(this, "timeOut", 5000);

mySend_lv.sendAndLoad(________)

--
Lon Hosford
www.lonhosford.com
May many happy bits flow your way!
[quoted text, click to view]
Hi is there anyway to set a timeout period when using a sendAndLoad ->
onLoad method or is the only way to use sendAndLoad and then manually create
a loop to check to see if it's loaded within a certain period of time?
(flash 6 by the way).

thanks
James

AddThis Social Bookmark Button