Packagecom.adobe.ane.gameCenter
Classpublic class GameCenterAchievementEvent
InheritanceGameCenterAchievementEvent Inheritance GameCenterEvent Inheritance flash.events.Event

Describes an event dispatched by the Game Center achievement API.



Public Properties
 PropertyDefined By
  achievements : Array
Contains an array of GameCenterAchievement objects when the event type is ACHIEVEMENTS_LOADED
GameCenterAchievementEvent
  image : BitmapData
Contains a BitmapData object when the event type is ACHIEVEMENT_IMAGE_LOADED
GameCenterAchievementEvent
Public Methods
 MethodDefined By
  
GameCenterAchievementEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)
Creates a new GameCenterAchievementEvent object.
GameCenterAchievementEvent
Public Constants
 ConstantDefined By
  ACHIEVEMENT_IMAGE_FAILED : String = achievementImageFailed
[static]
GameCenterAchievementEvent
  ACHIEVEMENT_IMAGE_LOADED : String = achievementImageLoaded
[static]
GameCenterAchievementEvent
  ACHIEVEMENTS_FAILED : String = achievementsFailed
[static]
GameCenterAchievementEvent
  ACHIEVEMENTS_LOADED : String = achievementsLoaded
[static]
GameCenterAchievementEvent
  ACHIEVEMENTS_VIEW_FINISHED : String = achievementsViewFinished
[static] Defines the value of the type property of a GameCenterAchievementEvent object.
GameCenterAchievementEvent
  RESET_ACHIEVEMENTS_FAILED : String = resetAchievementsFailed
[static]
GameCenterAchievementEvent
  RESET_ACHIEVEMENTS_SUCCEEDED : String = resetAchievementsSucceeded
[static]
GameCenterAchievementEvent
  SUBMIT_ACHIEVEMENT_FAILED : String = submitAchievementFailed
[static]
GameCenterAchievementEvent
  SUBMIT_ACHIEVEMENT_SUCCEEDED : String = submitAchievementSucceeded
[static]
GameCenterAchievementEvent
Property Detail
achievementsproperty
public var achievements:Array

Contains an array of GameCenterAchievement objects when the event type is ACHIEVEMENTS_LOADED

imageproperty 
public var image:BitmapData

Contains a BitmapData object when the event type is ACHIEVEMENT_IMAGE_LOADED

Constructor Detail
GameCenterAchievementEvent()Constructor
public function GameCenterAchievementEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)

Creates a new GameCenterAchievementEvent object.

Parameters
type:String — The type of the event. Event listeners can access this information through the inherited type property.
 
bubbles:Boolean (default = false) — Indicates whether the Event object bubbles. Event listeners can access this information through the inherited bubbles property.
 
cancelable:Boolean (default = false) — Indicates whether the Event object can be canceled. Event listeners can access this information through the inherited cancelable property.
Constant Detail
ACHIEVEMENT_IMAGE_FAILEDConstant
public static const ACHIEVEMENT_IMAGE_FAILED:String = achievementImageFailed

ACHIEVEMENT_IMAGE_LOADEDConstant 
public static const ACHIEVEMENT_IMAGE_LOADED:String = achievementImageLoaded

ACHIEVEMENTS_FAILEDConstant 
public static const ACHIEVEMENTS_FAILED:String = achievementsFailed

ACHIEVEMENTS_LOADEDConstant 
public static const ACHIEVEMENTS_LOADED:String = achievementsLoaded

ACHIEVEMENTS_VIEW_FINISHEDConstant 
public static const ACHIEVEMENTS_VIEW_FINISHED:String = achievementsViewFinished

Defines the value of the type property of a GameCenterAchievementEvent object.

RESET_ACHIEVEMENTS_FAILEDConstant 
public static const RESET_ACHIEVEMENTS_FAILED:String = resetAchievementsFailed

RESET_ACHIEVEMENTS_SUCCEEDEDConstant 
public static const RESET_ACHIEVEMENTS_SUCCEEDED:String = resetAchievementsSucceeded

SUBMIT_ACHIEVEMENT_FAILEDConstant 
public static const SUBMIT_ACHIEVEMENT_FAILED:String = submitAchievementFailed

SUBMIT_ACHIEVEMENT_SUCCEEDEDConstant 
public static const SUBMIT_ACHIEVEMENT_SUCCEEDED:String = submitAchievementSucceeded