Introducing the events of rooms

We discussed three types of rooms when configuring the server in the previous section. The regular room, game room, and limbo room come with different purposes. Each type of rooms has its own set of available events. We will go through some common room events and compare the availability of the events in the three types of rooms.

Event name

Description

onUserEnterRoom

This is a notification that a user has joined the room. This is useful to draw a new user's information and his graphics on the Flash virtual world when receiving this notification message.

onUserLeaveRoom

This is a notification telling that a user has left the room. Similar to the onUserEnterRoom, we often clean up that user's information ...

Get Flash Multiplayer Virtual Worlds now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.