PDA

View Full Version : LoadVariables and SetInterval


smokeyfull
07-23-2007, 05:16 AM
Hi All,

I use a simple ASP code to retrieve the latest data from the MSDE databases and display them in Flash. However, these databases are updated frequently and I need the changes to reflect in the display. If I'm not mistaken, it's possible for Flash to refresh the display automatically by using setInterval.
So I need to set certain intervals for Flash to call the ASP code and load the latest data from the databases.

I have below codes to call the ASP code but I'm not sure how to use it together with the setInterval.

onClipEvent(load)
{

loadVariables ("GetDataLoc1.asp?", this);
loadVariables ("GetDataLoc1.asp?", this);

}

Appreciate your help. Thanks.

sneakyimp
07-29-2007, 07:53 PM
It is definitely possible. Try reading the manual:

http://livedocs.adobe.com/flash/mx2004/main_7_2/00001662.html#4023423