| Property | Defined By | ||
|---|---|---|---|
| _inventory : MochiInventory [static] | MochiCoins | ||
| inventory : MochiInventory [static] [read-only] | MochiCoins | ||
| Method | Defined By | ||
|---|---|---|---|
addEventListener(eventType:String, delegate:Function):void [static] | MochiCoins | ||
getStoreItems():void [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 | ||
| Constant | Defined 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 | ||
| _inventory | property |
public static var _inventory:MochiInventory| inventory | property |
inventory:MochiInventory [read-only] public static function get inventory():MochiInventory| addEventListener | () | method |
public static function addEventListener(eventType:String, delegate:Function):voidParameters
eventType:String | |
delegate:Function |
| getStoreItems | () | method |
public static function getStoreItems():voidMethod: 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():StringReturnsString |
| removeEventListener | () | method |
public static function removeEventListener(eventType:String, delegate:Function):voidParameters
eventType:String | |
delegate:Function |
| requestFunding | () | method |
public static function requestFunding(properties:Object = null):voidMethod: 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):voidMethod: showItem Displays the MochiGames with one item.
Parameters
options:Object (default = null) |
| showStore | () | method |
public static function showStore(options:Object = null):voidMethod: showStore Displays the MochiGames Store.
Parameters
options:Object (default = null) |
| showVideo | () | method |
public static function showVideo(options:Object = null):voidMethod: showVideo Displays the demonstration video for an item
Parameters
options:Object (default = null) |
| triggerEvent | () | method |
public static function triggerEvent(eventType:String, args:Object):voidParameters
eventType:String | |
args:Object |
| ERROR | Constant |
public static const ERROR:String = Error| IO_ERROR | Constant |
public static const IO_ERROR:String = IOError| ITEM_NEW | Constant |
public static const ITEM_NEW:String = ItemNew| ITEM_OWNED | Constant |
public static const ITEM_OWNED:String = ItemOwned| NO_USER | Constant |
public static const NO_USER:String = NoUser| STORE_HIDE | Constant |
public static const STORE_HIDE:String = StoreHide| STORE_ITEMS | Constant |
public static const STORE_ITEMS:String = StoreItems| STORE_SHOW | Constant |
public static const STORE_SHOW:String = StoreShow