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

Package | Nonoba.api
Class | public class NonobaAPI
Inheritance | NonobaAPI Object

Public Methods

| Method | Defined By
--- | --- | ---
|  | NonobaAPI() | NonobaAPI
|  | AddChildToChat(s:Sprite):void [static] | NonobaAPI
|  | AwardAchievement(stage:Stage, key:String, callback:Function = null):void [static] | NonobaAPI
|  | DisableChat(m:String):void [static] | NonobaAPI
|  | EnableChat():void [static] | NonobaAPI
|  | GetShopItemKeys(stage:Stage, callback:Function = null):void [static] | NonobaAPI
|  | GetUserData(stage:Stage, key:String, callback:Function = null):void [static] | NonobaAPI
|  | GetUsername(stage:Stage, callback:Function = null):void [static] | NonobaAPI
|  | HasShopItem(stage:Stage, key:*, callback:Function = null):void [static] | NonobaAPI
|  | Login(stage:Stage, callback:Function):void [static] | NonobaAPI
|  | MakeMultiplayer(stage:Stage, s:String = localhost, p:Number = 8184):Connection [static] | NonobaAPI
|  | SetUserData(stage:Stage, key:String, value:String, callback:Function = null):void [static] | NonobaAPI
|  | ShowShop(stage:Stage, item:String, callback:Function):void [static] | NonobaAPI
|  | SubmitScore(stage:Stage, key:String, score:Number, callback:Function = null):void [static] | NonobaAPI

Public Constants

| Constant | Defined By
--- | --- | ---
|  | ERROR : String = error [static] | NonobaAPI
|  | NOT_LOGGED_IN : String = user not logged in [static] | NonobaAPI
|  | SUCCESS : String = success [static] | NonobaAPI

Constructor Detail

NonobaAPI | () | Constructor

`public function NonobaAPI()`

Method Detail

AddChildToChat | () | method

`public static function AddChildToChat(s:Sprite):void`

Parameters

| `s:Sprite`

AwardAchievement | () | method |

`public static function AwardAchievement(stage:Stage, key:String, callback:Function = null):void`

Parameters

| `stage:Stage`
| `key:String`
| `callback:Function` (default = `null`)``

DisableChat | () | method |

`public static function DisableChat(m:String):void`

Parameters

| `m:String`

EnableChat | () | method |

`public static function EnableChat():void`

GetShopItemKeys | () | method |

`public static function GetShopItemKeys(stage:Stage, callback:Function = null):void`

Parameters

| `stage:Stage`
| `callback:Function` (default = `null`)``

GetUserData | () | method |

`public static function GetUserData(stage:Stage, key:String, callback:Function = null):void`

Parameters

| `stage:Stage`
| `key:String`
| `callback:Function` (default = `null`)``

GetUsername | () | method |

`public static function GetUsername(stage:Stage, callback:Function = null):void`

Parameters

| `stage:Stage`
| `callback:Function` (default = `null`)``

HasShopItem | () | method |

`public static function HasShopItem(stage:Stage, key:*, callback:Function = null):void`

Parameters

| `stage:Stage`
| `key:*`
| `callback:Function` (default = `null`)``

Login | () | method |

`public static function Login(stage:Stage, callback:Function):void`

Parameters

| `stage:Stage`
| `callback:Function`

MakeMultiplayer | () | method |

`public static function MakeMultiplayer(stage:Stage, s:String = localhost, p:Number = 8184):Connection`

Parameters

| `stage:Stage`
| `s:String` (default = `localhost`)``
| `p:Number` (default = `8184`)``

Returns

| `Connection`

SetUserData | () | method |

`public static function SetUserData(stage:Stage, key:String, value:String, callback:Function = null):void`

Parameters

| `stage:Stage`
| `key:String`
| `value:String`
| `callback:Function` (default = `null`)``

ShowShop | () | method |

`public static function ShowShop(stage:Stage, item:String, callback:Function):void`

Parameters

| `stage:Stage`
| `item:String`
| `callback:Function`

SubmitScore | () | method |

`public static function SubmitScore(stage:Stage, key:String, score:Number, callback:Function = null):void`

Parameters

| `stage:Stage`
| `key:String`
| `score:Number`
| `callback:Function` (default = `null`)``

Constant Detail

ERROR | Constant

`public static const ERROR:String = error`

NOT_LOGGED_IN | Constant |

`public static const NOT_LOGGED_IN:String = user not logged in`

SUCCESS | Constant |

`public static const SUCCESS:String = success`

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