Packagecom.distriqt.extension.facebook.share.events
Classpublic class ShareDialogEvent
InheritanceShareDialogEvent Inheritance flash.events.Event

This class represents events dispatched from the Share Dialog.

See also

com.distriqt.extension.facebook.share.ShareDialog


Public Properties
 PropertyDefined By
  errorCode : int = -1
ShareDialogEvent
  errorMessage : String = null
ShareDialogEvent
  postId : String = null
ShareDialogEvent
Public Methods
 MethodDefined By
  
ShareDialogEvent(type:String, postId:String = null, errorCode:int = -1, errorMessage:String = null, bubbles:Boolean = false, cancelable:Boolean = false)
Constructor
ShareDialogEvent
  
clone():Event
[override]
ShareDialogEvent
Public Constants
 ConstantDefined By
  CANCEL : String = facebook_share_dialog_cancel
[static] Dispatched when the user cancelled a share dialog
ShareDialogEvent
  COMPLETE : String = facebook_share_dialog_complete
[static] Dispatched when the Facebook share dialog has completed successfully.
ShareDialogEvent
  ERROR : String = facebook_share_dialog_error
[static] Dispatched when an error occurred posting from a dialog errorMessage will contain details on the error that occurred.
ShareDialogEvent
Property Detail
errorCodeproperty
public var errorCode:int = -1

errorMessageproperty 
public var errorMessage:String = null

postIdproperty 
public var postId:String = null

Constructor Detail
ShareDialogEvent()Constructor
public function ShareDialogEvent(type:String, postId:String = null, errorCode:int = -1, errorMessage:String = null, bubbles:Boolean = false, cancelable:Boolean = false)

Constructor

Parameters
type:String
 
postId:String (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_share_dialog_cancel

Dispatched when the user cancelled a share dialog

COMPLETEConstant 
public static const COMPLETE:String = facebook_share_dialog_complete

Dispatched when the Facebook share dialog has completed successfully.

postId will contain the id of the post created.

ERRORConstant 
public static const ERROR:String = facebook_share_dialog_error

Dispatched when an error occurred posting from a dialog

errorMessage will contain details on the error that occurred.