Macromedia Flash Server - total users connected.

This is Interesting: Free IT Magazines  
Home > Archive > Macromedia Flash Server > April 2005 > total users connected.





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 total users connected.
Varun Shetty

2005-04-27, 5:45 pm

Hi,=20

Can anyone give me overview idea on how to can I make a total users that
are connected to the flash comm.=20

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=20
Is there any events that I can trigger when a user disconnects..?

Well, what is preferred for this.=20
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=20

=-----------------------------------------------------------
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

Peldi Guilizzoni

2005-04-27, 5:45 pm

Server-side. Look in the docs for application.onConnect and
application.onDisconnect


-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org]
Sent: Wednesday, April 27, 2005 2:14 PM
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

Varun Shetty

2005-04-27, 5:45 pm

Gee.. I figured it out .. =20
Flashdocs rawks .. =20

I did this Server side script=20
application.onAppStart =3D function() {
application.connectedUsers =3D 0;
};
application.onConnect =3D function(newClient) {
application.acceptConnection(newClient);
application.connectedUsers ++;
trace(application.connectedUsers);
};
application.onDisconnect =3D 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.. ?=20
=20
Regards,
VARUN SHETTY=20

-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Varun
Shetty
Sent: Thursday, April 28, 2005 2:44 AM
To: FlashComm Mailing List
Subject: [FlashComm] total users connected.

Hi,=20

Can anyone give me overview idea on how to can I make a total users that
are connected to the flash comm.=20

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=20
Is there any events that I can trigger when a user disconnects..?

Well, what is preferred for this.=20
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=20

=3D---------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=3D---------------------------------------------------------

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

Varun Shetty

2005-04-27, 5:45 pm

wooha .. what a coincidence..=20

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..=20

And below I read peldi himself suggesting me the same path ..=20
Amazing...

Thanks you peldi in many ways .. =20

Regards,
VARUN SHETTY=20

-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] 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 .. =20
Flashdocs rawks .. =20

I did this Server side script=20
application.onAppStart =3D function() {
application.connectedUsers =3D 0;
};
application.onConnect =3D function(newClient) {
application.acceptConnection(newClient);
application.connectedUsers ++;
trace(application.connectedUsers);
};
application.onDisconnect =3D 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.. ?=20
=20
Regards,
VARUN SHETTY=20

-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Varun
Shetty
Sent: Thursday, April 28, 2005 2:44 AM
To: FlashComm Mailing List
Subject: [FlashComm] total users connected.

Hi,=20

Can anyone give me overview idea on how to can I make a total users that
are connected to the flash comm.=20

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=20
Is there any events that I can trigger when a user disconnects..?

Well, what is preferred for this.=20
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=20

=3D---------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=3D---------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

=3D---------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=3D---------------------------------------------------------

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

Varun Shetty

2005-04-27, 8:45 pm

How do I call a function from a server side to ALL the client's=20

I can use clientObj.call("funcname", null, params) for a single client
But how do I do it for all the clients.. ?=20

Well, I need it for decrementing the user count when a user disconnects=20
I cannot use the clientObj because the user is already disconnected and
I cant run any function from his client.

Regards,
VARUN SHETTY=20

-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Varun
Shetty
Sent: Thursday, April 28, 2005 4:25 AM
To: FlashComm Mailing List
Subject: RE: [FlashComm] total users connected.

wooha .. what a coincidence..=20

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..=20

And below I read peldi himself suggesting me the same path ..=20
Amazing...

Thanks you peldi in many ways .. =20

Regards,
VARUN SHETTY=20

-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] 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 .. =20
Flashdocs rawks .. =20

I did this Server side script=20
application.onAppStart =3D function() {
application.connectedUsers =3D 0;
};
application.onConnect =3D function(newClient) {
application.acceptConnection(newClient);
application.connectedUsers ++;
trace(application.connectedUsers);
};
application.onDisconnect =3D 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.. ?=20
=20
Regards,
VARUN SHETTY=20

-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Varun
Shetty
Sent: Thursday, April 28, 2005 2:44 AM
To: FlashComm Mailing List
Subject: [FlashComm] total users connected.

Hi,=20

Can anyone give me overview idea on how to can I make a total users that
are connected to the flash comm.=20

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=20
Is there any events that I can trigger when a user disconnects..?

Well, what is preferred for this.=20
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=20

=3D---------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=3D---------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

=3D---------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=3D---------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

=3D---------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=3D---------------------------------------------------------

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

Andreas Rønning

2005-04-27, 8:45 pm

for(var x=application.clients.length;x--;){
application.clients[x].call("myFunction",null,whatever,etc);
}

to answer your earlier question, you can get the number of connected
clients with application.clients.length as well.
Any connecting client object is pushed into application.clients.

- Andreas

Varun Shetty wrote:

>How do I call a function from a server side to ALL the client's
>
>I can use clientObj.call("funcname", null, params) for a single client
>But how do I do it for all the clients.. ?
>
>Well, I need it for decrementing the user count when a user disconnects
>I cannot use the clientObj because the user is already disconnected and
>I cant run any function from his client.
>
>Regards,
>VARUN SHETTY
>
>-----Original Message-----
>From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
>[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Varun
>Shetty
>Sent: Thursday, April 28, 2005 4:25 AM
>To: FlashComm Mailing List
>Subject: RE: [FlashComm] total users connected.
>
>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@public.gmane.org
>[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] 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@public.gmane.org
>[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] 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
>
>=---------------------------------------------------------
>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

Varun Shetty

2005-04-27, 8:45 pm

Wow... you just broke down my 10 lines of code into 3 lines=20

Thank you Andreas, this helped me a lot =20

I even tried checking for the remaining properties and making a list of =
it
It is working great =20

Regards,
VARUN SHETTY=20

-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org =
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Andreas =
R=F8nning
Sent: Thursday, April 28, 2005 6:01 AM
To: FlashComm Mailing List
Subject: Re: [FlashComm] total users connected.

for(var x=3Dapplication.clients.length;x--;){
application.clients[x].call("myFunction",null,whatever,etc);
}

to answer your earlier question, you can get the number of connected=20
clients with application.clients.length as well.
Any connecting client object is pushed into application.clients.

- Andreas

Varun Shetty wrote:

>How do I call a function from a server side to ALL the client's=20
>
>I can use clientObj.call("funcname", null, params) for a single client
>But how do I do it for all the clients.. ?=20
>
>Well, I need it for decrementing the user count when a user disconnects =


>I cannot use the clientObj because the user is already disconnected and
>I cant run any function from his client.
>
>Regards,
>VARUN SHETTY=20
>
>-----Original Message-----
>From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
>[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Varun
>Shetty
>Sent: Thursday, April 28, 2005 4:25 AM
>To: FlashComm Mailing List
>Subject: RE: [FlashComm] total users connected.
>
>wooha .. what a coincidence..=20
>
>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..=20
>
>And below I read peldi himself suggesting me the same path ..=20
>Amazing...
>
>Thanks you peldi in many ways .. =20
>
>Regards,
>VARUN SHETTY=20
>
>-----Original Message-----
>From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
>[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] 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 .. =20
>Flashdocs rawks .. =20
>
>I did this Server side script=20
>application.onAppStart =3D function() {
> application.connectedUsers =3D 0;
>};
>application.onConnect =3D function(newClient) {
> application.acceptConnection(newClient);
> application.connectedUsers ++;
> trace(application.connectedUsers);
>};
>application.onDisconnect =3D 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.. ?=20
>=20
>Regards,
>VARUN SHETTY=20
>
>-----Original Message-----
>From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
>[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Varun
>Shetty
>Sent: Thursday, April 28, 2005 2:44 AM
>To: FlashComm Mailing List
>Subject: [FlashComm] total users connected.
>
>Hi,=20
>
>Can anyone give me overview idea on how to can I make a total users =

that
>are connected to the flash comm.=20
>
>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=20
>Is there any events that I can trigger when a user disconnects..?
>
>Well, what is preferred for this.=20
>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=20
>
>=3D---------------------------------------------------------
>Supported by Fig Leaf Software - http://www.figleaf.com
>=3D---------------------------------------------------------
>
>To change your subscription options or search the archive:
>http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
>=3D---------------------------------------------------------
>Supported by Fig Leaf Software - http://www.figleaf.com
>=3D---------------------------------------------------------
>
>To change your subscription options or search the archive:
>http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
>=3D---------------------------------------------------------
>Supported by Fig Leaf Software - http://www.figleaf.com
>=3D---------------------------------------------------------
>
>To change your subscription options or search the archive:
>http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
>=3D---------------------------------------------------------
>Supported by Fig Leaf Software - http://www.figleaf.com
>=3D---------------------------------------------------------
>
>To change your subscription options or search the archive:
>http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
> =20
>


=3D-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=3D-----------------------------------------------------------

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

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com