Macromedia Flash Server - sending msg across chat lobby&rooms

This is Interesting: Free IT Magazines  
Home > Archive > Macromedia Flash Server > November 2005 > sending msg across chat lobby&rooms





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 sending msg across chat lobby&rooms
heisen

2005-11-14, 5:45 pm

=EF=BB=BFhi,=0A=0AIam using a lobby chat application, =0A=0Aiam using=
this code to notify the user disconnection to the other users in one=
room=0A=0A for (var i =3D 0; i < application.clients.length; i ++)=0A=
{=0A application.clients [i].call ("msgFromServer", null, client.us=
ername, this.instancename, "left");=0A =0A }=0A=0Athe "clinets" array=
hold the reference to the clients,=0A=0Ai want to send a similar msg=
to other rooms too, any snippets would be fine.=0A=0Athanks,=0Aheisen
________________________________________
__
Get your own goowy now @ http://www.goowy.com

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

Janu

2005-11-14, 8:45 pm

You must connect to the room then you can call() to send the message

If you open the FCS sample: sample_room in main.asc you will find the same
thing

----- Original Message -----
From: "heisen" <heisenberg16-015hOC+AsXEAvxtiuMwx3w@public.gmane.org>
To: "flash" <flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>
Sent: Tuesday, November 15, 2005 8:09 AM
Subject: Fw: [FlashComm] sending msg across chat lobby&rooms


hi,

if anyone kind enough to answer my question , that would be great.
iam stuckup here in a project.pls help me.

thanks,
heisen.






From: heisen[mailto:heisenberg16-015hOC+AsXEAvxtiuMwx3w@public.gmane.org]
Sent: Monday, November 14, 2005 6:31 PM -08:00
To: flash [flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org]
Subject: [FlashComm] sending msg across chat lobby&rooms

hi,

Iam using a lobby chat application,

iam using this code to notify the user disconnection to the other users in
one room

for (var i = 0; i < application.clients.length; i ++)
{
application.clients [i].call ("msgFromServer", null, client.username,
this.instancename, "left");

}

the "clinets" array hold the reference to the clients,

i want to send a similar msg to other rooms too, any snippets would be fine.

thanks,
heisen
________________________________________
__
Get your own goowy now @ http://www.goowy.com

---------------------------------------------------------
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
________________________________________
__
Get your own goowy now @ http://www.goowy.com

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

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com