Packagemochi.as3
Classpublic class MochiEvents
InheritanceMochiEvents Inheritance Object



Public Methods
 MethodDefined By
  
addEventListener(eventType:String, delegate:Function):void
[static]
MochiEvents
  
endPlay():void
[static]
MochiEvents
  
getAchievements(properties:Object = null):void
[static] Method: getAchievements Calls GAME_ACHIEVEMENTS event, passing an object with all achievements in system
MochiEvents
  
getVersion():String
[static]
MochiEvents
  
removeEventListener(eventType:String, delegate:Function):void
[static]
MochiEvents
  
setNotifications(style:Object):void
[static]
MochiEvents
  
showAwards(options:Object = null):void
[static]
MochiEvents
  
startPlay(tag:String = gameplay):void
[static]
MochiEvents
  
startSession(achievementID:String):void
[static]
MochiEvents
  
trackEvent(tag:String, value:* = null):void
[static]
MochiEvents
  
triggerEvent(eventType:String, args:Object):void
[static]
MochiEvents
  
unlockAchievement(properties:Object):void
[static]
MochiEvents
Public Constants
 ConstantDefined By
  ACHIEVEMENT_NEW : String = AchievementReceived
[static]
MochiEvents
  ACHIEVEMENTS_OWNED : String = AchievementOwned
[static]
MochiEvents
  ALIGN_BOTTOM : String = ALIGN_B
[static]
MochiEvents
  ALIGN_BOTTOM_LEFT : String = ALIGN_BL
[static]
MochiEvents
  ALIGN_BOTTOM_RIGHT : String = ALIGN_BR
[static]
MochiEvents
  ALIGN_CENTER : String = ALIGN_C
[static]
MochiEvents
  ALIGN_LEFT : String = ALIGN_L
[static]
MochiEvents
  ALIGN_RIGHT : String = ALIGN_R
[static]
MochiEvents
  ALIGN_TOP : String = ALIGN_T
[static]
MochiEvents
  ALIGN_TOP_LEFT : String = ALIGN_TL
[static]
MochiEvents
  ALIGN_TOP_RIGHT : String = ALIGN_TR
[static]
MochiEvents
  ERROR : String = Error
[static]
MochiEvents
  FORMAT_LONG : String = LongForm
[static]
MochiEvents
  FORMAT_NONE : String = NoForm
[static]
MochiEvents
  FORMAT_SHORT : String = ShortForm
[static]
MochiEvents
  GAME_ACHIEVEMENTS : String = GameAchievements
[static]
MochiEvents
  IO_ERROR : String = IOError
[static]
MochiEvents
  IO_PENDING : String = IOPending
[static]
MochiEvents
Method Detail
addEventListener()method
public static function addEventListener(eventType:String, delegate:Function):void

Parameters

eventType:String
 
delegate:Function

endPlay()method 
public static function endPlay():void

getAchievements()method 
public static function getAchievements(properties:Object = null):void

Method: getAchievements Calls GAME_ACHIEVEMENTS event, passing an object with all achievements in system

Parameters

properties:Object (default = null)

getVersion()method 
public static function getVersion():String

Returns
String
removeEventListener()method 
public static function removeEventListener(eventType:String, delegate:Function):void

Parameters

eventType:String
 
delegate:Function

setNotifications()method 
public static function setNotifications(style:Object):void

Parameters

style:Object

showAwards()method 
public static function showAwards(options:Object = null):void

Parameters

options:Object (default = null)

startPlay()method 
public static function startPlay(tag:String = gameplay):void

Parameters

tag:String (default = gameplay)

startSession()method 
public static function startSession(achievementID:String):void

Parameters

achievementID:String

trackEvent()method 
public static function trackEvent(tag:String, value:* = null):void

Parameters

tag:String
 
value:* (default = null)

triggerEvent()method 
public static function triggerEvent(eventType:String, args:Object):void

Parameters

eventType:String
 
args:Object

unlockAchievement()method 
public static function unlockAchievement(properties:Object):void

Parameters

properties:Object

Constant Detail
ACHIEVEMENT_NEWConstant
public static const ACHIEVEMENT_NEW:String = AchievementReceived

ACHIEVEMENTS_OWNEDConstant 
public static const ACHIEVEMENTS_OWNED:String = AchievementOwned

ALIGN_BOTTOMConstant 
public static const ALIGN_BOTTOM:String = ALIGN_B

ALIGN_BOTTOM_LEFTConstant 
public static const ALIGN_BOTTOM_LEFT:String = ALIGN_BL

ALIGN_BOTTOM_RIGHTConstant 
public static const ALIGN_BOTTOM_RIGHT:String = ALIGN_BR

ALIGN_CENTERConstant 
public static const ALIGN_CENTER:String = ALIGN_C

ALIGN_LEFTConstant 
public static const ALIGN_LEFT:String = ALIGN_L

ALIGN_RIGHTConstant 
public static const ALIGN_RIGHT:String = ALIGN_R

ALIGN_TOPConstant 
public static const ALIGN_TOP:String = ALIGN_T

ALIGN_TOP_LEFTConstant 
public static const ALIGN_TOP_LEFT:String = ALIGN_TL

ALIGN_TOP_RIGHTConstant 
public static const ALIGN_TOP_RIGHT:String = ALIGN_TR

ERRORConstant 
public static const ERROR:String = Error

FORMAT_LONGConstant 
public static const FORMAT_LONG:String = LongForm

FORMAT_NONEConstant 
public static const FORMAT_NONE:String = NoForm

FORMAT_SHORTConstant 
public static const FORMAT_SHORT:String = ShortForm

GAME_ACHIEVEMENTSConstant 
public static const GAME_ACHIEVEMENTS:String = GameAchievements

IO_ERRORConstant 
public static const IO_ERROR:String = IOError

IO_PENDINGConstant 
public static const IO_PENDING:String = IOPending