Packagecom.adobe.ane.gameCenter
Classpublic class GameCenterMatchEvent
InheritanceGameCenterMatchEvent Inheritance GameCenterEvent Inheritance flash.events.Event

Describes an event dispatched by the Game Center match API.



Public Properties
 PropertyDefined By
  matchData : ByteArray
Contains the String object when the event type is MATCH_DATA_RECEIVED
GameCenterMatchEvent
  matchInvite : GameCenterMatchInvite
Contains the GameCenterMatchInvite object when the event type is MATCH_INVITE_RECEIVED
GameCenterMatchEvent
  matchPlayers : Array
Contains the GameCenterPlayer object when the event type is MATCH_PLAYER_CONNECTED, MATCH_INVITE_RECEIVED or MATCH_PLAYER_LIST_LOADED
GameCenterMatchEvent
Public Methods
 MethodDefined By
  
GameCenterMatchEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)
Creates a new GameCenterMatchEvent object.
GameCenterMatchEvent
Public Constants
 ConstantDefined By
  MATCH_CANCELLED : String = matchCancelled
[static] Defines the value of the type property of a GameCenterMatchEvent object.
GameCenterMatchEvent
  MATCH_DATA_RECEIVED : String = matchDataReceived
[static]
GameCenterMatchEvent
  MATCH_FAILED : String = matchFailed
[static]
GameCenterMatchEvent
  MATCH_INVITE_RECEIVED : String = matchInviteReceived
[static]
GameCenterMatchEvent
  MATCH_PLAYER_CONNECTED : String = matchPlayerConnected
[static]
GameCenterMatchEvent
  MATCH_PLAYER_DISCONNECTED : String = matchPlayerDisconnected
[static]
GameCenterMatchEvent
  MATCH_PLAYERS_FAILED : String = matchPlayersFailed
[static]
GameCenterMatchEvent
  MATCH_PLAYERS_LOADED : String = matchPlayersLoaded
[static]
GameCenterMatchEvent
  MATCH_STARTED : String = matchStarted
[static]
GameCenterMatchEvent
  MATCH_VOICE_FAILED : String = matchVoiceFailed
[static]
GameCenterMatchEvent
  SEND_MATCH_DATA_FAILED : String = sendMatchDataFailed
[static]
GameCenterMatchEvent
  SEND_MATCH_DATA_SUCCEEDED : String = sendMatchDataSucceeded
[static]
GameCenterMatchEvent
Property Detail
matchDataproperty
public var matchData:ByteArray

Contains the String object when the event type is MATCH_DATA_RECEIVED

matchInviteproperty 
public var matchInvite:GameCenterMatchInvite

Contains the GameCenterMatchInvite object when the event type is MATCH_INVITE_RECEIVED

matchPlayersproperty 
public var matchPlayers:Array

Contains the GameCenterPlayer object when the event type is MATCH_PLAYER_CONNECTED, MATCH_INVITE_RECEIVED or MATCH_PLAYER_LIST_LOADED

Constructor Detail
GameCenterMatchEvent()Constructor
public function GameCenterMatchEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)

Creates a new GameCenterMatchEvent object.

Parameters
type:String — The type of the event. Event listeners can access this information through the inherited type property.
 
bubbles:Boolean (default = false) — Indicates whether the Event object bubbles. Event listeners can access this information through the inherited bubbles property.
 
cancelable:Boolean (default = false) — Indicates whether the Event object can be canceled. Event listeners can access this information through the inherited cancelable property.
Constant Detail
MATCH_CANCELLEDConstant
public static const MATCH_CANCELLED:String = matchCancelled

Defines the value of the type property of a GameCenterMatchEvent object.

MATCH_DATA_RECEIVEDConstant 
public static const MATCH_DATA_RECEIVED:String = matchDataReceived

MATCH_FAILEDConstant 
public static const MATCH_FAILED:String = matchFailed

MATCH_INVITE_RECEIVEDConstant 
public static const MATCH_INVITE_RECEIVED:String = matchInviteReceived

MATCH_PLAYER_CONNECTEDConstant 
public static const MATCH_PLAYER_CONNECTED:String = matchPlayerConnected

MATCH_PLAYER_DISCONNECTEDConstant 
public static const MATCH_PLAYER_DISCONNECTED:String = matchPlayerDisconnected

MATCH_PLAYERS_FAILEDConstant 
public static const MATCH_PLAYERS_FAILED:String = matchPlayersFailed

MATCH_PLAYERS_LOADEDConstant 
public static const MATCH_PLAYERS_LOADED:String = matchPlayersLoaded

MATCH_STARTEDConstant 
public static const MATCH_STARTED:String = matchStarted

MATCH_VOICE_FAILEDConstant 
public static const MATCH_VOICE_FAILED:String = matchVoiceFailed

SEND_MATCH_DATA_FAILEDConstant 
public static const SEND_MATCH_DATA_FAILED:String = sendMatchDataFailed

SEND_MATCH_DATA_SUCCEEDEDConstant 
public static const SEND_MATCH_DATA_SUCCEEDED:String = sendMatchDataSucceeded