Macromedia Flash Server - SetInterval in ASC

This is Interesting: Free IT Magazines  
Home > Archive > Macromedia Flash Server > February 2006 > SetInterval in ASC





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author SetInterval in ASC
Chmielewski yarek

2006-02-25, 5: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

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com