After he click on the RoomList instance (roombox), he go to the chat.
In the chat frame, there is a button to go back to my "room" frame.
Here the code of my "room" frame:
Code: Select all
import it.gotoandplay.smartfoxbits.events.*
stop()
smartFox.getRoomList()
roombox.showGameRooms = false
//roombox.defaultRoom = "Welcome"
roombox.refreshView()
roombox.addEventListener(BitEvent.ROOM_CHANGE, myChangeRoom)
function myChangeRoom(evt:BitEvent)
{
trace("the selected room has change so handle it ! :)")
}
And the exception I got :
Code: Select all
ReferenceError: Error # 1056: Unable to create property selectedRoom on it.gotoandplay.smartfoxbits.bits.RoomList.
at it.gotoandplay.smartfoxbits.bits: RoomList / onListEvent ()
at flash.events:: EventDispatcher / dispatchEventFunction ()
At flash.events:: EventDispatcher / dispatchEvent ()
at fl.controls: SelectableList / handleCellRendererClick ()
I have to deal directly with roombox.userList ?
Cheers,
Thierry.