||unity-dev|| clients connected

unity-dev@moock.org unity-dev@moock.org
Tue Feb 14 13:58:01 2006


right. It would probably the easiest for you to simply delete the code you 
don't need from uClientChatDemo, and output the user count to a TextField.

colin


----- Original Message ----- 
From: <unity-dev-admin@moock.org>
To: <unity-dev@moock.org>
Sent: Monday, February 13, 2006 9:12 PM
Subject: Re: ||unity-dev|| clients connected


ok so I need to have a small pixel size uApp (flash file) which I
place on my front HTML page
that connects to the room and asks

public function onNumClientsInNamespace(e:NamespaceEvent):Void {
   // Display the new client count on screen.
   clients_txt.text = "Unique users: " + e.getNumClients();
}

I guess I could use uApp to connect to room in normal fashion and add
this to the uAppNamespaceview

I have to make the clients_txt text box too but is that all i need to
do ?

clientChatDemo looks good but does too much I just want to simply
display number of people
in room before I enter ? does clientChatDemo connect differently to
uApp ?

adam

On 31 Jan 2006, at 08:40, unity-dev-admin@moock.org wrote:

> Hi,
> If i am not wrong, you can have this in a namespaceview. I have no the
> example here, but i think if you look at "clientChatDemo" example
> you can
> see this. In this example, ChatNamespaceView implements not only
> NamespaceListener, but implements URoomListener too, giving you
> chances to
> do this with the onNumClients method.
>
> Hope this helps.
>
> Bye.
>
>
> CÓMO Tecnología - http://www.como.es
> -------------------------------------
> Javier Tardaguila
> Programador
>
> javier.tardaguila@como.es
>
> Duque de Liria, 6
> 3ª Planta
> 28015 Madrid
> T (34) 91 548 92 60
> F (34) 91 541 10 17
>
> -----Mensaje original-----
> De: unity-dev-admin@moock.org [mailto:unity-dev-admin@moock.org]
> Enviado el: lunes, 30 de enero de 2006 19:36
> Para: unity-dev@moock.org
> Asunto: ||unity-dev|| clients connected
>
> I have some code to show number of clients when i am connected/
> inside the
> room
>
> However I would like to have a front page that reports the number
> of clients
> connected to a unity room you are about to enter
>
> Is this possible ?
>
> Adam
>
>
>
> --
> you're a unity-dev subscriber. to unsubscribe, visit
> www.moock.org/mailman/listinfo/unity-dev/
>
> superb hosting for this list and moock.org is generously provided by
> Rackspace. See: http://www.rackspace.com/?supbid=moock
>
>
> --
> you're a unity-dev subscriber. to unsubscribe, visit www.moock.org/
> mailman/listinfo/unity-dev/
>
> superb hosting for this list and moock.org is generously provided
> by Rackspace. See: http://www.rackspace.com/?supbid=moock