Peterblaze is right. But to tell you the exact code in the Tic Tac Toe example, here goes
Code:
function userListUpdated(userList, type, user) {
if (user == gamePlayer0 || user == gamePlayer1) {
//A game player left
popup.gotoAndStop("Player Left");
}
}
es.userListUpdated = userListUpdated;
First a function is defined to receive the userListUpdate event. Then it is assigned as an event handler to that event (in the final line).
Every time a user enters or leaves the room this function is called. When the function is called it is given useful information such as 'type' (meaning "userjoined", "userleft", etc), and a reference to the user in question. In the if statement we check to see if the user being referred to is a game player. If it is, then we make the popup window popup and show that the user has left the game.
Of course there is a little more to it beause you had to store the variables called gamePlayer0 and gamePlayer1 earlier. So look in the code to see when and where that was done.