Packagecom.asfusion.mate.actionLists
Interfacepublic interface IScope extends ILoggerProvider
ImplementorsScope

Scope is an object created by the IActionList.

It represents the running scope of a that IActionList. The IActionList and its IActions inner tags share this object to transfer data between them.



Public Properties
 PropertyDefined by
  currentTarget : Object
The current target that is using this scope.
IScope
  data : Object
Data Object (holder for custom data)
IScope
  dispatcher : IEventDispatcher
Instance of the IEventDispatcher that will be used to dispatch events or to register to events.
IScope
  event : Event
Original Event that triggered the IActionList.
IScope
  eventMap : IEventMap
Instance of the EventMap where this scope lives.
IScope
  lastReturn : *
return from the last IAction run
IScope
  owner : IActionList
The IActionList that created this scope.
IScope
Public Methods
 MethodDefined by
 Inherited
errorString():String
Retuns the default error string to be used by the debugger.
ILoggerProvider
 Inherited
Returns the current target that is using this scope.
ILoggerProvider
 Inherited
getDocument():Object
A reference to the document object associated with this ILoggerProvider.
ILoggerProvider
 Inherited
Returns an IMateLogger used to log errors.
ILoggerProvider
  
Returns an instance of IMateManager used to get the logger and dispatcher.
IScope
  
isRunning():Boolean
Returns a boolean indicating if the IActionList is running or not.
IScope
  
stopRunning():void
Stops the IActionList flow.
IScope
Property detail
currentTargetproperty
currentTarget:Object  [read-write]

The current target that is using this scope. This target is usually set by the IActionList before calling trigger on its actions.

Implementation
    public function get currentTarget():Object
    public function set currentTarget(value:Object):void
dataproperty 
data:Object  [read-write]

Data Object (holder for custom data)

Implementation
    public function get data():Object
    public function set data(value:Object):void
dispatcherproperty 
dispatcher:IEventDispatcher  [read-write]

Instance of the IEventDispatcher that will be used to dispatch events or to register to events.

Implementation
    public function get dispatcher():IEventDispatcher
    public function set dispatcher(value:IEventDispatcher):void
eventproperty 
event:Event  [read-write]

Original Event that triggered the IActionList.

Implementation
    public function get event():Event
    public function set event(value:Event):void
eventMapproperty 
eventMap:IEventMap  [read-write]

Instance of the EventMap where this scope lives.

Implementation
    public function get eventMap():IEventMap
    public function set eventMap(value:IEventMap):void
lastReturnproperty 
lastReturn:*  [read-write]

return from the last IAction run

Implementation
    public function get lastReturn():*
    public function set lastReturn(value:*):void
ownerproperty 
owner:IActionList  [read-write]

The IActionList that created this scope.

Implementation
    public function get owner():IActionList
    public function set owner(value:IActionList):void
Method detail
getManager()method
public function getManager():IMateManager

Returns an instance of IMateManager used to get the logger and dispatcher.

Returns
IMateManager
isRunning()method 
public function isRunning():Boolean

Returns a boolean indicating if the IActionList is running or not.

Returns
Boolean
stopRunning()method 
public function stopRunning():void

Stops the IActionList flow. The next IAction will be not be called.