GODPAPER | All Packages | All Classes | Index | Frames No Frames |
MochiCoins

Package | mochi.as3
Class | public class MochiCoins
Inheritance | MochiCoins Object

Public Properties

| Property | Defined By
--- | --- | ---
|  | _inventory : MochiInventory [static] | MochiCoins
|  | inventory : MochiInventory [static] [read-only] | MochiCoins

Public Methods

| 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

Public Constants

| 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

Property Detail

_inventory | property

`public static var _inventory:MochiInventory`

inventory | property |

`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

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`

Thu Jan 16 2014, 01:11 PM +08:00