multiple rooms problem(activeRoomId)

You think you've found a bug? Please report it here.

Moderators: Lapo, Bax

Post Reply
ggogggo
Posts: 11
Joined: 15 Dec 2008, 08:05

multiple rooms problem(activeRoomId)

Post by ggogggo »

Halo, i have a problem when using multiple rooms joining. I've set the parameter "exitCurrentRoom" to false when i create the current room because i want to be in the Lobby at the same time. But after i leave the created game room i should be only in the Lobby room, because i use smartfox.leaveRoom(game room id). And somehow the smartfox still thinks that i'm in this game room which even doesn't exist already. When i use the smartfox.activeRoomId after the onRoomLeft event it gives me the number of the room that i already left and which doesn't exist already in the smartfox administration. Can you help me on this issue?
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

Hi,
this is not exactly a bug. The activeRoomId works okay when you join one room at a time. If you plan to use more than one room we recommend to keep track of your joined rooms in your own code. (we state this in our documentation)

In the next major release we're going to provide an easier way to handle multiple joins using a slightly different approach.
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply