wooha .. what a coincidence..
I was going thru flashcommguru site for this.. then I traveled to
peldi's site .. saw the flashdocs .. downloaded it... read the onConnect
and onDisconnect figured it out and came back to the mailing list and
posted it..
And below I read peldi himself suggesting me the same path ..
Amazing...
Thanks you peldi in many ways .. :)
Regards,
VARUN SHETTY
-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@xxxxxxxxxxxxxxxx
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@xxxxxxxxxxxxxxxx] On
Behalf Of Varun
Shetty
Sent: Thursday, April 28, 2005 4:09 AM
To: FlashComm Mailing List
Subject: RE: [FlashComm] total users connected.
Gee.. I figured it out .. :)
Flashdocs rawks .. :)
I did this Server side script
application.onAppStart = function() {
application.connectedUsers = 0;
};
application.onConnect = function(newClient) {
application.acceptConnection(newClient);
application.connectedUsers ++;
trace(application.connectedUsers);
};
application.onDisconnect = function(newClient) {
application.connectedUsers--;
};
I traced this and checked it in the live log, it seems to work perfectly
Now I need to find the way to transfer this data to flash
Btw. Is there any flash communication chat server/irc server.. where all
the FCS enthusiasts hang around together.. ?
Regards,
VARUN SHETTY
-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@xxxxxxxxxxxxxxxx
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@xxxxxxxxxxxxxxxx] On
Behalf Of Varun
Shetty
Sent: Thursday, April 28, 2005 2:44 AM
To: FlashComm Mailing List
Subject: [FlashComm] total users connected.
Hi,
Can anyone give me overview idea on how to can I make a total users that
are connected to the flash comm.
Well I don't think I have a problem in making a users that are
incrementing with the number of connections, it's the disconnects that I
am worried about
Is there any events that I can trigger when a user disconnects..?
Well, what is preferred for this.
I don't want to use a sharedObject and trigger it on a setInterval to
check if the users are there or not. It would eat up a lot of bandwidth.
Is there anything else that I can try ?
And yea... I wanna do it without components ;) or without any user
logging in. It should be as soon as a person connects to fcs
Regards,
VARUN SHETTY
=---------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=---------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
=---------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=---------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
|
|