Packagenet.flashplusplus.Snapdragon.GameCenter.events
Classpublic class SDLeaderboardEvent
InheritanceSDLeaderboardEvent Inheritance flash.events.Event

SDLeaderboardEvent is an event object dispatched by using iOS Game Center leaderboard features.



Public Properties
 PropertyDefined By
  leaderboards : Vector.<SDLeaderboard>
[read-only] The leaderboards vector contains SDLeaderboard objects.
SDLeaderboardEvent
  scores : Vector.<SDScore>
[read-only] The scores vector contains of SDScore objects.
SDLeaderboardEvent
Public Methods
 MethodDefined By
  
SDLeaderboardEvent(type:String, leaderboards:Vector.<SDLeaderboard> = null, scores:Vector.<SDScore> = null, bubbles:Boolean = false, cancelable:Boolean = false)
Constructor of SDLeaderboardEvent class.
SDLeaderboardEvent
Public Constants
 ConstantDefined By
  LEADERBOARD_LIST_COMPLETE : String = LEADERBOARD_LIST_COMPLETE
[static]
SDLeaderboardEvent
  LEADERBOARD_LIST_ERROR : String = LEADERBOARD_LIST_ERROR
[static]
SDLeaderboardEvent
  LEADERBOARD_SCORE_REPORT_COMPLETE : String = LEADERBOARD_SCORE_REPORT_COMPLETE
[static]
SDLeaderboardEvent
  LEADERBOARD_SCORE_REPORT_ERROR : String = LEADERBOARD_SCORE_REPORT_ERROR
[static]
SDLeaderboardEvent
  LEADERBOARD_SCORE_REQUEST_COMPLETE : String = LEADERBOARD_SCORE_REQUEST_COMPLETE
[static]
SDLeaderboardEvent
  LEADERBOARD_SCORE_REQUEST_ERROR : String = LEADERBOARD_SCORE_REQUEST_ERROR
[static]
SDLeaderboardEvent
  LEADERBOARD_VIEW_CLOSED : String = LEADERBOARD_VIEW_CLOSED
[static]
SDLeaderboardEvent
Property Detail
leaderboardsproperty
leaderboards:Vector.<SDLeaderboard>  [read-only]

The leaderboards vector contains SDLeaderboard objects. The vector contains valid data only, when the type of the event is LEADERBOARD_LIST_COMPLETE.


Implementation
    public function get leaderboards():Vector.<SDLeaderboard>
scoresproperty 
scores:Vector.<SDScore>  [read-only]

The scores vector contains of SDScore objects. The vector contains valid data only, when the type of the event is LEADERBOARD_SCORE_REQUEST_COMPLETE.


Implementation
    public function get scores():Vector.<SDScore>
Constructor Detail
SDLeaderboardEvent()Constructor
public function SDLeaderboardEvent(type:String, leaderboards:Vector.<SDLeaderboard> = null, scores:Vector.<SDScore> = null, bubbles:Boolean = false, cancelable:Boolean = false)

Constructor of SDLeaderboardEvent class.

Parameters
type:String — is the type of the event.
 
leaderboards:Vector.<SDLeaderboard> (default = null) — is a vector of SDLeaderboard objects asked from Snapdragon API.
 
scores:Vector.<SDScore> (default = null) — is a vector of SDScore objects asked from Snapdragon API.
 
bubbles:Boolean (default = false)
 
cancelable:Boolean (default = false)
Constant Detail
LEADERBOARD_LIST_COMPLETEConstant
public static const LEADERBOARD_LIST_COMPLETE:String = LEADERBOARD_LIST_COMPLETE

LEADERBOARD_LIST_ERRORConstant 
public static const LEADERBOARD_LIST_ERROR:String = LEADERBOARD_LIST_ERROR

LEADERBOARD_SCORE_REPORT_COMPLETEConstant 
public static const LEADERBOARD_SCORE_REPORT_COMPLETE:String = LEADERBOARD_SCORE_REPORT_COMPLETE

LEADERBOARD_SCORE_REPORT_ERRORConstant 
public static const LEADERBOARD_SCORE_REPORT_ERROR:String = LEADERBOARD_SCORE_REPORT_ERROR

LEADERBOARD_SCORE_REQUEST_COMPLETEConstant 
public static const LEADERBOARD_SCORE_REQUEST_COMPLETE:String = LEADERBOARD_SCORE_REQUEST_COMPLETE

LEADERBOARD_SCORE_REQUEST_ERRORConstant 
public static const LEADERBOARD_SCORE_REQUEST_ERROR:String = LEADERBOARD_SCORE_REQUEST_ERROR

LEADERBOARD_VIEW_CLOSEDConstant 
public static const LEADERBOARD_VIEW_CLOSED:String = LEADERBOARD_VIEW_CLOSED