In the SmartFoxClient.as the player id inside the room is set using the setMyPlayerId method which is incorrect. The right method is setMyPlayerIndex. It cause the getMyPlayerIndex method of a room to always return undefined.
Found in SmartFox ver 1.4 pro as2 api