SetInterval in ASC
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Macromedia Flash Server > SetInterval in ASC




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    SetInterval in ASC  
Chmielewski yarek


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-25-06 10:47 PM

Is this SetInterval  working in ASC script ?
I am trying to make the server send a message to clients every 10 seconds.


so I put something like:

application.onAppStart = function() {
InteravlID= setInterval(NewGame, 10000);
(...)
}


Than I have

NewGame= function () {
for (var i = 0; i<application.clients.length; i++) {
application.clients[i].call("initgame", null, "start game");
}
return 0;
};


It seems it is NEVER called !






 ________________________________________
___________________________________
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs 
exceptionnels pour appeler la France et l'international.
Téléchargez sur http://fr.messenger.yahoo.com
 ________________________________________
_______
FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:36 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register