Package | com.cyntaxic.cynmvc.model.helpers |
Class | public class DataCallEvent |
Inheritance | DataCallEvent flash.events.Event |
DataCallEvent
class dispatches DataCallEvent
objects when a DataCall
object retrieves information from a server.
Property | Defined By | ||
---|---|---|---|
data : DataCallVO [read-only]
The data from the server as a value object. | DataCallEvent | ||
handle : Object
The string value of the callback function handle. | DataCallEvent |
Method | Defined By | ||
---|---|---|---|
DataCallEvent(type:String, handle:Object, data:DataCallVO = null, bubbles:Boolean = false, cancelable:Boolean = false)
Creates an DataCallEvent object. | DataCallEvent |
Constant | Defined By | ||
---|---|---|---|
COMPLETE : String = complete [static]
Used to specify a completion of a DataCall. | DataCallEvent | ||
IO_ERROR : String = ioError [static]
Used to specify a DataCall input/output error. | DataCallEvent | ||
SECURITY_ERROR : String = securityError [static]
Used to specify a DataCall security error. | DataCallEvent | ||
TIMEOUT : String = timeout [static]
Used to specify a DataCallEvent timeout. | DataCallEvent |
data | property |
data:DataCallVO
[read-only] The data from the server as a value object.
public function get data():DataCallVO
handle | property |
handle:Object
The string value of the callback function handle.
public function get handle():Object
public function set handle(value:Object):void
DataCallEvent | () | Constructor |
public function DataCallEvent(type:String, handle:Object, data:DataCallVO = null, bubbles:Boolean = false, cancelable:Boolean = false)
Creates an DataCallEvent
object. The event is fired when the
DataCall
object retrieves information from a server.
type:String — The type of the event.
| |
handle:Object — The function name of the callback function made in the controller when the call is complete.
| |
data:DataCallVO (default = null ) — The data object to be sent to the server as either GET or POST.
| |
bubbles:Boolean (default = false ) — Determines whether the Event object bubbles. Event listeners can access this information through the inherited bubbles property.
| |
cancelable:Boolean (default = false ) — Determines whether the Event object can be canceled. Event listeners can access this information through the inherited cancelable property.
|
COMPLETE | Constant |
public static const COMPLETE:String = complete
Used to specify a completion of a DataCall
.
IO_ERROR | Constant |
public static const IO_ERROR:String = ioError
Used to specify a DataCall
input/output error.
SECURITY_ERROR | Constant |
public static const SECURITY_ERROR:String = securityError
Used to specify a DataCall
security error.
TIMEOUT | Constant |
public static const TIMEOUT:String = timeout
Used to specify a DataCallEvent
timeout.