Packagecom.asfusion.mate.actions
Classpublic class InlineInvoker
InheritanceInlineInvoker Inheritance AbstractAction
ImplementsIAction

Allows calling an inline function (a function defined in the event map) or calling a static function in any class. You can pass arguments to this function that come from a variety of sources, such as the event itself, `a server result object, or any other value.



Public Properties
 PropertyDefined by
  arguments : *
The property arguments allows you to pass an Object or an Array of objects when calling the function defined in the property method .
InlineInvoker
  method : Function
The function to call on the created object.
InlineInvoker
Protected Properties
 PropertyDefined by
 InheritedcurrentInstance : * = null
The currentInstance is the Object that this class will use and modify to do its work.
AbstractAction
 Inheriteddocument : Object
A reference to the document object associated with the IActionList that contains this action item.
AbstractAction
Public Methods
 MethodDefined by
 Inherited
initialized(document:Object, id:String):void
Called automatically by the MXML compiler if the AbstractAction is set up by using a tag.
AbstractAction
 Inherited
trigger(scope:IScope):void
This method gets called when the IActionList (ex: EventHandlers) is running.
AbstractAction
Protected Methods
 MethodDefined by
 Inherited
complete(scope:IScope):void
The last method that trigger calls.
AbstractAction
 Inherited
prepare(scope:IScope):void
The first method that trigger calls.
AbstractAction
  
run(scope:IScope):void
Where all the action occurs.
InlineInvoker
 Inherited
setProperties(scope:IScope):void
Where all the properties are set into the currentInstance.
AbstractAction
Property detail
argumentsproperty
arguments:*  [read-write]

The property arguments allows you to pass an Object or an Array of objects when calling the function defined in the property method .

You can use an array to pass multiple arguments or use a simple Object if the signature of the method has only one parameter.

The default value is undefined.

Implementation
    public function get arguments():*
    public function set arguments(value:*):void
methodproperty 
method:Function  [read-write]

The function to call on the created object.

The default value is null.

Implementation
    public function get method():Function
    public function set method(value:Function):void
Method detail
run()method
protected override function run(scope:IScope):void

Where all the action occurs. At this moment, the currentInstance is already instantiated and all the properties are already set.

Parameters
scope:IScope