Packagecom.asfusion.mate.actionLists
Classpublic class ServiceHandlers
InheritanceServiceHandlers Inheritance EventHandlers Inheritance AbstractHandlers Inheritance flash.events.EventDispatcher
ImplementsIActionList

A inner-action-list to run when the server call returns a result. Inside this IActionList, you can use the same tags you would in the main body of a <IActionList>, including other service calls.

This inner-action-list is used by the ServiceInvoker



Public Properties
 PropertyDefined by
 Inheritedactions : Array
An array of Actions (IAction) contained in this IActionList.
AbstractHandlers
 Inheriteddebug : Boolean
Whether to show debugging information for this IActionList.
AbstractHandlers
 InheriteddispatcherType : String
String that defines whether the dispatcher used by this tag is global or inherit.
AbstractHandlers
 Inheritedpriority : int
(default = 0) — The priority level of the EventHandlers.
EventHandlers
 Inheritedscope : IScope
Returns the current scope for this IActionList
AbstractHandlers
  token : AsyncToken
Generated when making asynchronous RPC operations.
ServiceHandlers
 Inheritedtype : String
The event type that, when dispatched, should trigger the handlers to run.
EventHandlers
 InheriteduseCapture : Boolean
(default = false) — Determines whether the listener works in the capture phase or the target and bubbling phases.
EventHandlers
 InheriteduseWeakReference : Boolean
(default = true) — Determines whether the reference to the listener is strong or weak.
EventHandlers
Protected Properties
 PropertyDefined by
 InheritedcurrentDispatcher : IEventDispatcher
AbstractHandlers
 InheriteddispatcherTypeChanged : Boolean
Flag indicating whether the dispatcherType has been changed and needs invalidation.
AbstractHandlers
 Inheriteddocument : Object
Internal storage for the document object.
AbstractHandlers
 InheritedinheritedScope : IScope
Parent scope that is passed to the IActionList when it is a sub-ActionList.
AbstractHandlers
 Inheritedmanager : IMateManager
Internal instance of IMateManager.
AbstractHandlers
 Inheritedmap : IEventMap
Internal instance of IEventMap.
AbstractHandlers
 Inheritedregistered : Boolean
Flag indicating if this EventHandlers tag is registered to listen to an event or not.
EventHandlers
Public Methods
 MethodDefined by
  
ServiceHandlers(inheritedScope:IScope = null)
Constructor
ServiceHandlers
 Inherited
Unregister as a listener and prepare to be garbage collected
EventHandlers
  
errorString():String
Retuns an error String to be used by the debugger.
ServiceHandlers
 Inherited
getDocument():Object
A reference to the document object associated with this IActionList.
AbstractHandlers
 Inherited
getGroupId():int
Method to get the group id.
AbstractHandlers
 Inherited
initialized(document:Object, id:String):void
Called automatically by the MXML compiler if the IActionList is set up using a tag.
AbstractHandlers
 Inherited
Marks a component so that its commitProperties method gets called during a later screen update.
AbstractHandlers
 Inherited
setDispatcher(value:IEventDispatcher, local:Boolean = true):void
A method that allows setting the dispatcher that this IActionList will use to register to events.
EventHandlers
 Inherited
setGroupId(id:int):void
Method to set the group id.
AbstractHandlers
 Inherited
setInheritedScope(inheritedScope:IScope):void
You can pass the parent scope to this IActionList to copy the inherited values.
AbstractHandlers
 Inherited
validateNow():void
Validate and update the properties of this object, if necessary.
AbstractHandlers
Protected Methods
 MethodDefined by
 Inherited
Processes the properties set on the component.
EventHandlers
 Inherited
A handler for the mate dispatcher changed.
AbstractHandlers
  
fireEvent(event:Event):void
Called by the dispacher when the event gets triggered.
ServiceHandlers
 Inherited
runSequence(scope:IScope, actionList:Array):void
Goes over all the listeners (IActions) and calls the method trigger on them, passing the scope as an argument.
AbstractHandlers
 Inherited
setScope(scope:IScope):void
Set the scope on this IActionList.
AbstractHandlers
 Inherited
unregister(oldType:String, oldDispatcher:IEventDispatcher, oldCapture:Boolean):void
Un-register as a listener of the event type provided.
EventHandlers
Events
 EventSummaryDefined by
 Inherited
end
This event is dispatched right after all the IActions have been called, when the IActionList ends execution (although this event might be dispatched before asynchronous calls have returned).AbstractHandlers
 Inherited This event is dispatched right before the list of IActions are called, when the IActionList starts execution.AbstractHandlers
Property detail
tokenproperty
token:AsyncToken  [read-write]

Generated when making asynchronous RPC operations. The same object is available in the result and fault events in the token property.

Implementation
    public function get token():AsyncToken
    public function set token(value:AsyncToken):void
Constructor detail
ServiceHandlers()constructor
public function ServiceHandlers(inheritedScope:IScope = null)

Constructor

Parameters
inheritedScope:IScope (default = null)
Method detail
errorString()method
public override function errorString():String

Retuns an error String to be used by the debugger.

Returns
String
fireEvent()method 
protected override function fireEvent(event:Event):void

Called by the dispacher when the event gets triggered. This method creates a scope and then runs the sequence.

Parameters
event:Event