Packagecom.distriqt.extension.facebook.share.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.share.GameRequestDialog


Public Properties
 PropertyDefined By
  errorCode : int = -1
GameRequestDialogEvent
  errorMessage : String = null
GameRequestDialogEvent
  id : String = null
The resulting request id
GameRequestDialogEvent
  recipients : Array
The array of recipients of the request
GameRequestDialogEvent
Public Methods
 MethodDefined By
  
GameRequestDialogEvent(type:String, id: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

errorMessageproperty 
public var errorMessage:String = null

idproperty 
public var id:String = null

The resulting request id

recipientsproperty 
public var recipients:Array

The array of recipients of the request

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

Constructor

Parameters
type:String
 
id: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.

postId will contain the id of the post created.

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.