Title / Description
Code override public function listNotificationInterests():Array { return [ GameRoomInterest.SHOW_DASHBOARD , GameRoomInterest.HIDE_DASHBOARD , GameRoomInterest.JOIN_GAME , GameInterest.NOTIFIY_USER , GameInterest.USER_ACTION_PROMPT , GameInterest.GAME_IS_CLOSED , GameInterest.GAME_ROUND_ENDED ]; } override public function handleNotification(notification:INotification):void { DEBUG::log { log.debug(ObjectUtil.toString(notification.getBody())); } trace("gameRoomNotification: "+notification.getName()+"->"+ObjectUtil.toString(notification.getBody())); switch(notification.getName()) { case GameRoomInterest.JOIN_GAME: gameRoomInfo = GameRoomInfo(notification.getBody()); loadGame(gameRoomInfo); break;
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code