Ok,
try the following:
Open org/flepstudio/shoutbox/Main.as
Import new classes:
Code:
import flash.utils.Timer;
import flash.events.TimerEvent;
Inside of init function, add this line at the end of the function:
Now create the function initTimer:
Code:
private function initTimer():void
{
timer=new Timer(5000,0);
timer.addEventListener(TimerEvent.TIMER,refreshWithTimer);
timer.start();
}
Now create the function refreshWithTimer:
Code:
private function refreshWithTimer(evt:TimerEvent):void
{
trace('ok');
Store.datas_array=new Array();
Store.names_array=new Array();
Store.messages_array=new Array();
loadXML();
}
It should work.