Flash Client Listeners
/** * Invoked in response to a connect request. * @param event */ public function onConnectDone(event:int):void; /** * Invoked in response to a disconnect request. * @param event */ public function onDisconnectDone(event:int):void; /** * Invoked in response to a disconnect request. * @param event */ public function onInitUDPDone(res:int):void;
/** * Invoked in response to a subscribeRoom request. * @param event */ public function onSubscribeRoomDone(event:Room):void; /** * Invoked in response to a UnSubscribeRoom request. * @param event */ public function onUnSubscribeRoomDone(event:Room):void; /** * Invoked in response to a joinRoom request. * @param event */ public function onJoinRoomDone(event:Room):void; /** * Invoked in response to a leaveRoom request. * @param event */ public function onLeaveRoomDone(event:Room):void; /** * Invoked in response to a getLiveRoomInfo request. * @param event */ public function onGetLiveRoomInfoDone(event:LiveRoom):void; /** * Invoked in response to a setCustomRoomData request. * @param event */ public function onSetCustomRoomDataDone(event:LiveRoom):void; /** * Invoked in response to add property to any room */ public function onUpdatePropertyDone(event:LiveRoom):void;
/** * Invoked in response to a deleteRoom request. * @param event */ public function onDeleteRoomDone(event:Room):void; /** * Invoked in response to a getAllRooms request. * @param event */ public function onGetAllRoomsDone(event:LiveRoom):void; /** * Invoked in response to a createRoom request. * @param event */ public function onCreateRoomDone(event:Room):void; /** * Invoked in response to a getOnlineUsers request. * @param event */ public function onGetOnlineUsersDone(event:LiveResult):void; /** * Invoked in response to a getLiveUserInfo request. * @param event */ public function onGetLiveUserInfoDone(event:LiveUser):void; /** * Invoked in response to a setCustomRoomData request. * @param event */ public function onSetCustomUserDataDone(event:LiveUser):void; /** * Invoked in response to a getMatchMaking Rooms request. * @param event */ public function onGetMatchedRoomsDone(event:MatchedRoom):void;
/** * Invoked in response to a joinLobby request. * @param event */ public function onJoinLobbyDone(event:Lobby):void; /** * Invoked in response to a leaveLobby request. * @param event */ public function onLeaveLobbyDone(event:Lobby):void; /** * Invoked in response to a subscribeLobby request. * @param event */ public function onSubscribeLobbyDone(event:Lobby):void; /** * Invoked in response to a UnSubscribeLobby request. * @param event */ public function onUnSubscribeLobbyDone(event:Lobby):void; /** * Invoked in response to a getLiveLobbyInfo request. * @param event */ public function onGetLiveLobbyInfoDone(event:LiveLobby):void;
/** * Result of SendUpdate request. The result value maps to a WarpResponseResultCode * @param result */ public function onSendUpdateDone(result:int):void;
/** * Result of SendChat request. The result value maps to a WarpResponseResultCode * @param result */ public function onSendChatDone(result:int):void;
/** * Invoked when a room is created. Lobby subscribers will receive this. * @param event */ public function onRoomCreated(event:Room):void; /** * Invoked when a room is deleted. Lobby subscribers will receive this. * @param event */ public function onRoomDestroyed(event:Room):void; /** * Invoked when a user leaves a room. Lobby and the concerned room subscribers * will receive this. * @param event * @param username */ public function onUserLeftRoom(event:Room,username:String):void; /** * Invoked when a user joins a room. Lobby and the concerned room subscribers * will receive this. * @param event * @param username */ public function onUserJoinedRoom(event:Room,username:String):void; /** * Invoked when a user leaves a lobby. Lobby subscribers will receive this. * @param event * @param username */ public function onUserLeftLobby(event:Lobby,username:String):void; /** * Invoked when a user joins a lobby. Lobby subscribers will receive this. * @param event * @param username */ public function onUserJoinedLobby(event:Lobby,username:String):void; /** * Invoked when a joined user sends a chat. Rooms subscribers will receive this. * @param event */ public function onChatReceived(event:Chat):void; /** * Invoked when a joined user sends a updatePeers request. Rooms subscribers * will receive this. * @param update : the byte array that was sent * @param fromUDP : whether the sender used UDP or TCP to send. */ public function onUpdatePeersReceived(update:ByteArray, fromUDP:Boolean):void; /** * Invoked when a user change room property. Lobby and the concerned room subscribers * will receive this. * @param event * @param username * @param properties */ public function onUserChangeRoomProperty(event:Room,username:String,properties:Object):void; /** * Invoked when a user's move is completed in a turn based room * @param move */ public function onMoveCompleted(move:Move):void; /** * Invoked when a user loses connectivity in a subscribed room or lobby * @param locid * @param isLobby * @param username */ public function onUserPaused(locid:String, isLobby:Boolean, username:String):void; /** * Invoked when a user's connectivity is restored in a subscribed room or lobby * @param locid * @param isLobby * @param username */ public function onUserResumed(locid:String, isLobby:Boolean, username:String):void; /** * Invoked when a user starts a game in a turn based room * @param sender * @param roomid * @param nextTurn */ public function onGameStarted(sender:String, roomid:String, nextTurn:String):void; /** * Invoked when a user stops a game in a turn based room * @param sender * @param roomid */ public function onGameStopped(sender:String, roomid:String):void;
/** * Result of SendMove request. The result value maps to a WarpResponseResultCode * @param result */ public function onSendMoveDone(result:int):void; /** * Result of StartGame request. The result value maps to a WarpResponseResultCode * @param result */ public function onStartGameDone(result:int):void; /** * Result of StopGame request. The result value maps to a WarpResponseResultCode * @param result */ public function onStopGameDone(result:int):void; /** * Result of GetMoveHistory request. The result value maps to a WarpResponseResultCode and moves * is an array of move events. * @param result * @param moves */ public function onGetMoveHistoryDone(result:int, moves:Array):void;