Packagecom.myflashlab.air.extensions.googleGames
Classpublic class Participant
InheritanceParticipant Inheritance Object

Data interface for multiplayer participants.



Public Properties
 PropertyDefined By
  displayName : String
[read-only] Return the name to display for this participant.
Participant
  id : String
[read-only] Returns the ID of this participant.
Participant
  isConnectedToRoom : Boolean
[read-only] Retrieves the connected status of the participant.
Participant
  player : Player
[read-only] Returns the Player that this participant represents.
Participant
  result : String
[read-only] Returns the ParticipantResult associated with this participant, if any.
Participant
Public Methods
 MethodDefined By
  
loadHiResImage($forceReload:Boolean, $callback:Function):void
Participant
  
loadIconImage($forceReload:Boolean, $callback:Function):void
Participant
Public Constants
 ConstantDefined By
  STATUS_DECLINED : int = 3
[static] Constant indicating that this participant has declined the invitation.
Participant
  STATUS_FINISHED : int = 5
[static] Constant indicating that this participant is finished with this match.
Participant
  STATUS_INVITED : int = 1
[static] Constant indicating that this participant has been sent an invitation.
Participant
  STATUS_JOINED : int = 2
[static] Constant indicating that this participant has accepted the invitation and is joined.
Participant
  STATUS_LEFT : int = 4
[static] Constant indicating that this participant joined a multiplayer game and subsequently left.
Participant
  STATUS_NOT_INVITED_YET : int = 0
[static] Constant indicating that this participant has not yet been sent an invitation.
Participant
  STATUS_UNRESPONSIVE : int = 6
[static] Constant indicating that this participant did not respond to the match in the alloted time.
Participant
Property Detail
displayNameproperty
displayName:String  [read-only]

Return the name to display for this participant. If the identity of the player is unknown, this will be a generic handle to describe the player.


Implementation
    public function get displayName():String
idproperty 
id:String  [read-only]

Returns the ID of this participant. Note that this is only valid for use in the current multiplayer room or match: a participant will not have the same ID across multiple rooms or matches.


Implementation
    public function get id():String
isConnectedToRoomproperty 
isConnectedToRoom:Boolean  [read-only]

Retrieves the connected status of the participant. If true indicates that participant is in the connected set of the room. Only applies to room participants.


Implementation
    public function get isConnectedToRoom():Boolean
playerproperty 
player:Player  [read-only]

Returns the Player that this participant represents. Note that this may be null if the identity of the player is unknown. This occurs in automatching scenarios where some players are not permitted to see the real identity of others.


Implementation
    public function get player():Player
resultproperty 
result:String  [read-only]

Returns the ParticipantResult associated with this participant, if any. Only applies to turn-based match participants.


Implementation
    public function get result():String
Method Detail
loadHiResImage()method
public function loadHiResImage($forceReload:Boolean, $callback:Function):void

Parameters

$forceReload:Boolean
 
$callback:Function — expects one param as File object to the image file.

loadIconImage()method 
public function loadIconImage($forceReload:Boolean, $callback:Function):void

Parameters

$forceReload:Boolean
 
$callback:Function — expects one param as File object to the image file.

Constant Detail
STATUS_DECLINEDConstant
public static const STATUS_DECLINED:int = 3

Constant indicating that this participant has declined the invitation.

STATUS_FINISHEDConstant 
public static const STATUS_FINISHED:int = 5

Constant indicating that this participant is finished with this match. Only applies to turn-based match participants.

STATUS_INVITEDConstant 
public static const STATUS_INVITED:int = 1

Constant indicating that this participant has been sent an invitation.

STATUS_JOINEDConstant 
public static const STATUS_JOINED:int = 2

Constant indicating that this participant has accepted the invitation and is joined.

STATUS_LEFTConstant 
public static const STATUS_LEFT:int = 4

Constant indicating that this participant joined a multiplayer game and subsequently left.

STATUS_NOT_INVITED_YETConstant 
public static const STATUS_NOT_INVITED_YET:int = 0

Constant indicating that this participant has not yet been sent an invitation. Only applies to turn-based match participants.

STATUS_UNRESPONSIVEConstant 
public static const STATUS_UNRESPONSIVE:int = 6

Constant indicating that this participant did not respond to the match in the alloted time. Only applies to turn-based match participants.