View Single Post

  #9 (permalink)  
Old 15-03-08, 17:29
Flep Flep is offline
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,447
Rep Power: 6
Flep is on a distinguished road
Re: Shoutbox problems

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:
Code:
initTimer();
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.
__________________

 


I recommend: Essential Actionscript 3.0

- Non rispondo ai messaggi privati con domande tecniche. Apri una discussione sul forum !
- I do not reply technicians pvt messages. Open a thread !
Reply With Quote