Packagemochi.as3
Classpublic class MochiCoins
InheritanceMochiCoins Inheritance Object



Public Properties
 PropertyDefined By
  _inventory : MochiInventory
[static]
MochiCoins
  inventory : MochiInventory
[static] [read-only]
MochiCoins
Public Methods
 MethodDefined By
  
addEventListener(eventType:String, delegate:Function):void
[static]
MochiCoins
  
[static] Method: getStoreItems Calls STORE_ITEMS event, passing an object with all store items, keyed by itemID { ab473e7f87129ecb: { name: "Super Cannon", desc: "A Super Cannon", imgURL: "http://..", cost: 150, maxNum: 1, tags:{ levels: "level-1" } } }
MochiCoins
  
getVersion():String
[static]
MochiCoins
  
removeEventListener(eventType:String, delegate:Function):void
[static]
MochiCoins
  
requestFunding(properties:Object = null):void
[static] Method: requestFunding Offers the user (asking they login first) if they wish to fund their account
MochiCoins
  
showItem(options:Object = null):void
[static] Method: showItem Displays the MochiGames with one item.
MochiCoins
  
showStore(options:Object = null):void
[static] Method: showStore Displays the MochiGames Store.
MochiCoins
  
showVideo(options:Object = null):void
[static] Method: showVideo Displays the demonstration video for an item
MochiCoins
  
triggerEvent(eventType:String, args:Object):void
[static]
MochiCoins
Public Constants
 ConstantDefined By
  ERROR : String = Error
[static]
MochiCoins
  IO_ERROR : String = IOError
[static]
MochiCoins
  ITEM_NEW : String = ItemNew
[static]
MochiCoins
  ITEM_OWNED : String = ItemOwned
[static]
MochiCoins
  NO_USER : String = NoUser
[static]
MochiCoins
  STORE_HIDE : String = StoreHide
[static]
MochiCoins
  STORE_ITEMS : String = StoreItems
[static]
MochiCoins
  STORE_SHOW : String = StoreShow
[static]
MochiCoins
Property Detail
_inventoryproperty
public static var _inventory:MochiInventory

inventoryproperty 
inventory:MochiInventory  [read-only]


Implementation
    public static function get inventory():MochiInventory
Method Detail
addEventListener()method
public static function addEventListener(eventType:String, delegate:Function):void

Parameters

eventType:String
 
delegate:Function

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

Method: getStoreItems Calls STORE_ITEMS event, passing an object with all store items, keyed by itemID { ab473e7f87129ecb: { name: "Super Cannon", desc: "A Super Cannon", imgURL: "http://..", cost: 150, maxNum: 1, tags:{ levels: "level-1" } } }

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

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

Method: requestFunding Offers the user (asking they login first) if they wish to fund their account

Parameters

properties:Object (default = null)

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

Method: showItem Displays the MochiGames with one item.

Parameters

options:Object (default = null)

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

Method: showStore Displays the MochiGames Store.

Parameters

options:Object (default = null)

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

Method: showVideo Displays the demonstration video for an item

Parameters

options:Object (default = null)

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

Parameters

eventType:String
 
args:Object

Constant Detail
ERRORConstant
public static const ERROR:String = Error

IO_ERRORConstant 
public static const IO_ERROR:String = IOError

ITEM_NEWConstant 
public static const ITEM_NEW:String = ItemNew

ITEM_OWNEDConstant 
public static const ITEM_OWNED:String = ItemOwned

NO_USERConstant 
public static const NO_USER:String = NoUser

STORE_HIDEConstant 
public static const STORE_HIDE:String = StoreHide

STORE_ITEMSConstant 
public static const STORE_ITEMS:String = StoreItems

STORE_SHOWConstant 
public static const STORE_SHOW:String = StoreShow