Packagecom.distriqt.extension.facebookapi.events
Classpublic class GameRequestEvent
InheritanceGameRequestEvent Inheritance flash.events.Event

This class represents events dispatched from Game Requests.

See also

com.distriqt.extension.facebookapi.games.GameRequest


Public Properties
 PropertyDefined By
  errorCode : int = -1
GameRequestEvent
  errorMessage : String = null
GameRequestEvent
  recipients : Array
request recipients
GameRequestEvent
  requestId : String = null
the request ID
GameRequestEvent
Public Methods
 MethodDefined By
  
GameRequestEvent(type:String, requestId:String = null, recipients:Array = null, errorCode:int = -1, errorMessage:String = null, bubbles:Boolean = false, cancelable:Boolean = false)
Constructor
GameRequestEvent
  
clone():Event
[override]
GameRequestEvent
Public Constants
 ConstantDefined By
  DIALOG_CANCELLED : String = facebookapi:gamerequest:dialog:cancelled
[static] Dispatched when the user cancelled a Game Request dialog
GameRequestEvent
  DIALOG_COMPLETED : String = facebookapi:gamerequest:dialog:completed
[static] Dispatched when the Facebook App Invite dialog has completed successfully.
GameRequestEvent
  DIALOG_ERROR : String = facebookapi:gamerequest:dialog:error
[static] Dispatched when an error occurred from a Game Request dialog errorMessage will contain details on the error that occurred.
GameRequestEvent
Property Detail
errorCodeproperty
public var errorCode:int = -1

errorMessageproperty 
public var errorMessage:String = null

recipientsproperty 
public var recipients:Array

request recipients

requestIdproperty 
public var requestId:String = null

the request ID

Constructor Detail
GameRequestEvent()Constructor
public function GameRequestEvent(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
DIALOG_CANCELLEDConstant
public static const DIALOG_CANCELLED:String = facebookapi:gamerequest:dialog:cancelled

Dispatched when the user cancelled a Game Request dialog

DIALOG_COMPLETEDConstant 
public static const DIALOG_COMPLETED:String = facebookapi:gamerequest:dialog:completed

Dispatched when the Facebook App Invite dialog has completed successfully.

DIALOG_ERRORConstant 
public static const DIALOG_ERROR:String = facebookapi:gamerequest:dialog:error

Dispatched when an error occurred from a Game Request dialog

errorMessage will contain details on the error that occurred.