Flash: Xml File refreshing every 10 secs



how exactly you used the setInterval function? 

all you need to do is: 

Code: Select all
myLoadInteval = setInterval(LoadFile, 10000);

function LoadFile()
{
   xmlData.load("http://www.crylounge.com/shoutcast.php"); 
}

The rest of your code remains the same. 

if you use your page on a browser, there can be a problem with the local cache. 
So probably your code works, but the file is read each time from the local cache ... so it doesnt change



0 comments:

Post a Comment