How do you listen for when a user enters a room? In the following code, enterUser() does not get called if there is no user in the room already, but does get called if there is already a user in the room.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:rtc="AfcsNameSpace"
layout="absolute"
creationComplete="init()">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
import com.adobe.rtc.events.UserEvent;
protected function init():void {
cSession.userManager.addEventListener(UserEvent.USER_CREATE, enterUser);
}
protected function enterUser(event:UserEvent):void {
Alert.show("user entered!");
}
]]>
</mx:Script>
<rtc:ConnectSessionContainer id="cSession" roomURL="https://connectnow.acrobat.com/myaccount/myfirstroom"
width="100%" height="100%" >
<rtc:authenticator>
<rtc:AdobeHSAuthenticator userName="Guest"/>
</rtc:authenticator>
<rtc:Roster width="250" height="250"/>
</rtc:ConnectSessionContainer>
</mx:Application>