How do I listen to presence events when using the Flash SDK?

Unlike other SDKs, the Flash client receives join and leave events by explicitly subscribing to the presence channel. For example, if you need to listen to presence events for channel xyz, simply subscribe to channel xyz-pnpres. To demonstrate presence events, try this Flash Console.