Thanks , sorry for the late response, i just received like 30 e-mails from
the mailing list today, all at once. 8P
Thanks people
>
>/** [EMAIL PROTECTED] */
> @Override
> public boolean roomConnect(IConnection conn, Object[] params)
> {
> //log.debug("@Application.java: roomConnect is called");
> //log.info("Client connected "+conn.getClient().getId()+" conn
>"+conn);
> //IServiceCapableConnection service = (IServiceCapableConnection)
>conn;
> //assign an ID to the chat user who has just been connected.
> ServiceUtils.invokeOnConnection(conn, "setConnectionID", new
>Object[] { conn.getClient().getId() }, this );
> //add this
> return true;
> }
>
>Here's an example. You can bass any number of parameters inside the object
>array; the object can be of any type. 'this' was the scope I think. To pass
>say 3 parameters:
>ServiceUtils.invokeOnConnection(conn, "setConnectionID", new Object[] {
>conn.getClient().getId(), param2, param3 }, this );
>
>setConnectionID is a method on the flash client.
>
>On 4/10/07, F?bio Costa <[EMAIL PROTECTED]> wrote:
> >
> > Ok, i was trying to start to develop some appplication, and then i get
>in
> > a
> > sittuation when (i guess) that i will have to use
>invokeOnAllConnections.
> > This method have a parameter like this Object[] params.
> > I googled and read the documentation, and it seems that this Object is
>the
> > primary object that all classes inherit, so i got in a situation where i
> > don't know how to pass the primitive object a value.
> > I tryed with add, with set, and tryied passing other things............
> > I really am really dull but i don't know how i pass this method
> > paramether. Anyone have a simple example of instantiating an Object []?
> >
> >
_________________________________________________________________
Descubra como mandar Torpedos SMS do seu Messenger para o celular dos seus
amigos. http://mobile.msn.com/
_______________________________________________
Red5 mailing list
[EMAIL PROTECTED]
http://osflash.org/mailman/listinfo/red5_osflash.org