Packagecom.exadel.flamingo.flex.components.flamingo
Classpublic class CallSet
InheritanceCallSet Inheritance flash.events.EventDispatcher

This component allows calling a set of methods on the server simultaneously and getting results of all these methods at one dash. It uses AMF protocol for server comunication.

Default MXML Propertycalls



Public Properties
 PropertyDefined by
  calls : Array
Array of Call elements.
CallSet
  destination : String
Specifies destination for RemoteObject
CallSet
Public Methods
 MethodDefined by
  
CallSet(target:IEventDispatcher = null)
Constructor.
CallSet
  
addCall(value:Call):void
Adds passed Call to the end of the calls Array.
CallSet
  
addCallAt(index:Number, value:Call):void
Adds passed Call to the calls Array at position specified by index parameter.
CallSet
  
removeCallAt(index:Number):void
Removes Call from calls Array at position specified by index parameter.
CallSet
  
send(... args):AsyncToken
Sends CallSet to server.
CallSet
Events
 EventSummaryDefined by
    CallSet
    CallSet
Property detail
callsproperty
calls:Array  [read-write]

Array of Call elements.

Implementation
    public function get calls():Array
    public function set calls(value:Array):void

See also

destinationproperty 
destination:String  [read-write]

Specifies destination for RemoteObject

Implementation
    public function get destination():String
    public function set destination(value:String):void
Constructor detail
CallSet()constructor
public function CallSet(target:IEventDispatcher = null)

Constructor. Initializes component.

Parameters
target:IEventDispatcher (default = null)
Method detail
addCall()method
public function addCall(value:Call):void

Adds passed Call to the end of the calls Array.

Parameters
value:Call — Call to be added

See also

addCallAt()method 
public function addCallAt(index:Number, value:Call):void

Adds passed Call to the calls Array at position specified by index parameter.

Parameters
index:Number — specifies position where Call should be added
 
value:CallCall to be added

See also

removeCallAt()method 
public function removeCallAt(index:Number):void

Removes Call from calls Array at position specified by index parameter.

Parameters
index:Number — specifies position at which Call should be removed
send()method 
public function send(... args):AsyncToken

Sends CallSet to server. Arguments passed in are passed along as arguments to Call elements in calls Array. Each argument mast be in form of Array and number of arguments must match number of Call elements in calls Array. If there are no arguments passed, the arguments object of every Call element is used as the source of parameters.

Parameters
... args

Returns
AsyncToken
Event detail
faultevent 
Event object type: mx.rpc.events.FaultEvent

resultevent  
Event object type: mx.rpc.events.ResultEvent