I don't know if this would work but probably implement a function like:
private function disconnectFromRoom( roomName:String ):void
When the owner of the room clicks on disconnect to leave the room, call:
so.send("disconnectFromRoom", "theUsersRoom")
Where so = SharedObject.getRemote("sharedobject");
This I think would trigger the disconnectFromRoom function to be called in
all connected users.
Now,
if(roomName == "theUsersRoom")
that is passed in the disconnectFromRoom function, then disconnect the user
from the room since the owner has asked to leave.
On 3/23/07, joseph wamicha <[EMAIL PROTECTED]> wrote:
It is possible because shared objects have been working in my application.
Please try using trunk.
Probably you could so.send a message to all users connected to the room to
disconnect when the user who owns the room wants to leave.
On 3/23/07, Martijn van Beek <[EMAIL PROTECTED]> wrote:
>
> My setup doesn't work like that, every user connects to the global
> application: rtmp://ip/app and there they can create rooms. The room created
> by a user is owned by the user, when he leaves the room it needs to be
> destroyed. The only part that doesn't work it the destroying part.
>
> Is it possible that the SharedObject doesn't work properly in 0.6 rc2?
>
> _______________________________________________
> Red5 mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
--
C is forever.
--
C is forever.
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org