Packagecom.cyntaxic.cynmvc.model.helpers
Classpublic class DataCallEvent
InheritanceDataCallEvent Inheritance flash.events.Event

The DataCallEvent class dispatches DataCallEvent objects when a DataCall object retrieves information from a server.



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined By
  
DataCallEvent(type:String, handle:Object, data:DataCallVO = null, bubbles:Boolean = false, cancelable:Boolean = false)
Creates an DataCallEvent object.
DataCallEvent
Public Constants
 ConstantDefined 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
Property Detail
dataproperty
data:DataCallVO  [read-only]

The data from the server as a value object.


Implementation
    public function get data():DataCallVO
handleproperty 
handle:Object

The string value of the callback function handle.


Implementation
    public function get handle():Object
    public function set handle(value:Object):void
Constructor Detail
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.

Parameters
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.
Constant Detail
COMPLETEConstant
public static const COMPLETE:String = complete

Used to specify a completion of a DataCall.

IO_ERRORConstant 
public static const IO_ERROR:String = ioError

Used to specify a DataCall input/output error.

SECURITY_ERRORConstant 
public static const SECURITY_ERROR:String = securityError

Used to specify a DataCall security error.

TIMEOUTConstant 
public static const TIMEOUT:String = timeout

Used to specify a DataCallEvent timeout.