Packagecom.distriqt.extension.facebook.gamingservices.events
Classpublic class GameRequestDialogEvent
InheritanceGameRequestDialogEvent Inheritance flash.events.Event

This class represents events dispatched from the Game Request Dialog.

See also

com.distriqt.extension.facebook.gamingservices.GameRequestDialog


Public Properties
 PropertyDefined By
  errorCode : int = -1
The error code if an error occurred
GameRequestDialogEvent
  errorMessage : String = null
An error message describing the issue if an error occurred
GameRequestDialogEvent
  recipients : Array
The list of recipient ids
GameRequestDialogEvent
  requestId : String = null
The request id of this dialog
GameRequestDialogEvent
Public Methods
 MethodDefined By
  
GameRequestDialogEvent(type:String, requestId:String = null, recipients:Array = null, errorCode:int = -1, errorMessage:String = null, bubbles:Boolean = false, cancelable:Boolean = false)
Constructor
GameRequestDialogEvent
  
clone():Event
[override]
GameRequestDialogEvent
Public Constants
 ConstantDefined By
  CANCEL : String = facebook_gamerequest_dialog_cancel
[static] Dispatched when the user cancelled a game request dialog
GameRequestDialogEvent
  COMPLETE : String = facebook_gamerequest_dialog_complete
[static] Dispatched when the Facebook game request dialog has completed successfully.
GameRequestDialogEvent
  ERROR : String = facebook_gamerequest_dialog_error
[static] Dispatched when an error occurred posting from a dialog errorMessage will contain details on the error that occurred.
GameRequestDialogEvent
Property Detail
errorCodeproperty
public var errorCode:int = -1

The error code if an error occurred

errorMessageproperty 
public var errorMessage:String = null

An error message describing the issue if an error occurred

recipientsproperty 
public var recipients:Array

The list of recipient ids

requestIdproperty 
public var requestId:String = null

The request id of this dialog

Constructor Detail
GameRequestDialogEvent()Constructor
public function GameRequestDialogEvent(type:String, requestId:String = null, recipients:Array = null, errorCode:int = -1, errorMessage:String = null, bubbles:Boolean = false, cancelable:Boolean = false)

Constructor

Parameters
type:String
 
requestId:String (default = null)
 
recipients:Array (default = null)
 
errorCode:int (default = -1)
 
errorMessage:String (default = null)
 
bubbles:Boolean (default = false)
 
cancelable:Boolean (default = false)
Method Detail
clone()method
override public function clone():Event

Returns
Event
Constant Detail
CANCELConstant
public static const CANCEL:String = facebook_gamerequest_dialog_cancel

Dispatched when the user cancelled a game request dialog

COMPLETEConstant 
public static const COMPLETE:String = facebook_gamerequest_dialog_complete

Dispatched when the Facebook game request dialog has completed successfully. requestId will contain the id of the game request.

ERRORConstant 
public static const ERROR:String = facebook_gamerequest_dialog_error

Dispatched when an error occurred posting from a dialog errorMessage will contain details on the error that occurred.