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

Package | mochi.as3
Class | public class MochiUserData
Inheritance | MochiUserData flash.events.EventDispatcher

Public Properties

| Property | Defined By
--- | --- | ---
|  | callback : Function = null | MochiUserData
|  | data : * = null | MochiUserData
|  | error : Event = null | MochiUserData
|  | key : String = null | MochiUserData
|  | _loader : URLLoader | MochiUserData
|  | operation : String = null | MochiUserData

Public Methods

| Method | Defined By
--- | --- | ---
|  | MochiUserData(key:String, callback:Function = null) | MochiUserData
|  | close():void | MochiUserData
|  | completeHandler(event:Event):void | MochiUserData
|  | deserialize(arr:ByteArray):* | MochiUserData
|  | errorHandler(event:IOErrorEvent):void | MochiUserData
|  | get(key:String, callback:Function):void [static] | MochiUserData
|  | getEvent():void | MochiUserData
|  | performCallback():void | MochiUserData
|  | put(key:String, obj:*, callback:Function):void [static] | MochiUserData
|  | putEvent(obj:*):void | MochiUserData
|  | request(_operation:String, _data:ByteArray):void | MochiUserData
|  | securityErrorHandler(event:SecurityErrorEvent):void | MochiUserData
|  | serialize(obj:*):ByteArray | MochiUserData
|  | toString():String [override] | MochiUserData

Property Detail

_loader | property

`public var _loader:URLLoader`

callback | property |

`public var callback:Function = null`

data | property |

`public var data:* = null`

error | property |

`public var error:Event = null`

key | property |

`public var key:String = null`

operation | property |

`public var operation:String = null`

Constructor Detail

MochiUserData | () | Constructor

`public function MochiUserData(key:String, callback:Function = null)`

Parameters

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

Method Detail

close | () | method

`public function close():void`

completeHandler | () | method |

`public function completeHandler(event:Event):void`

Parameters

| `event:Event`

deserialize | () | method |

`public function deserialize(arr:ByteArray):*`

Parameters

| `arr:ByteArray`

Returns

| `*`

errorHandler | () | method |

`public function errorHandler(event:IOErrorEvent):void`

Parameters

| `event:IOErrorEvent`

get | () | method |

`public static function get(key:String, callback:Function):void`

Parameters

| `key:String`
| `callback:Function`

getEvent | () | method |

`public function getEvent():void`

performCallback | () | method |

`public function performCallback():void`

put | () | method |

`public static function put(key:String, obj:*, callback:Function):void`

Parameters

| `key:String`
| `obj:*`
| `callback:Function`

putEvent | () | method |

`public function putEvent(obj:*):void`

Parameters

| `obj:*`

request | () | method |

`public function request(_operation:String, _data:ByteArray):void`

Parameters

| `_operation:String`
| `_data:ByteArray`

securityErrorHandler | () | method |

`public function securityErrorHandler(event:SecurityErrorEvent):void`

Parameters

| `event:SecurityErrorEvent`

serialize | () | method |

`public function serialize(obj:*):ByteArray`

Parameters

| `obj:*`

Returns

| `ByteArray`

toString | () | method |

`override public function toString():String`

Returns

| `String`

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