ActionScript® 3.0 Reference for the Adobe® Flash® Platform
Home  |  Show Packages and Classes List |  Packages  |  Classes  |  What's New  |  Index  |  Appendixes
com.adobe.acm.solutions.authoring.domain.extensions 

IActionHandler  - AS3 Asset Composer

Packagecom.adobe.acm.solutions.authoring.domain.extensions
Interfacepublic interface IActionHandler extends IEventDispatcher
Implementors CCRDefaultActionHandler

Language Version: ActionScript 3.0
Product Version: Asset Composer Building Block 10
Runtime Versions: AIR (unsupported), Flash Player 10.2

Interface for adding and handling custom actions in Extensible Toolbar. One instance of handler will be created for each action.



Public Properties
 PropertyDefined By
  action : CustomAction
Fetch action associated with this handler instance.
IActionHandler
  model : *
Flex Domain Model for on which the action is being taken
IActionHandler
Public Methods
 MethodDefined By
  
actionEnabled(extraParams:Object = null):Boolean
Should the action be enabled in toolbar
IActionHandler
  
actionVisible(extraParams:Object = null):Boolean
Should the action be visible in toolbar
IActionHandler
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event.
IEventDispatcher
 Inherited
Dispatches an event into the event flow.
IEventDispatcher
  
handleAction(extraParams:Object = null):void
Called when user user click an action
IActionHandler
 Inherited
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
IEventDispatcher
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
IEventDispatcher
 Inherited
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
IEventDispatcher
Property Detail

action

property
action:CustomAction

Language Version: ActionScript 3.0
Product Version: Asset Composer Building Block 10.0
Runtime Versions: AIR (unsupported), Flash Player 10.2

Fetch action associated with this handler instance.

This property can be used as the source for data binding. When this property is modified, it dispatches the propertyChange event.



Implementation
    public function get action():CustomAction
    public function set action(value:CustomAction):void

model

property 
model:*

Language Version: ActionScript 3.0
Product Version: Asset Composer Building Block 10.0
Runtime Versions: AIR (unsupported), Flash Player 10.2

Flex Domain Model for on which the action is being taken

This property can be used as the source for data binding. When this property is modified, it dispatches the propertyChange event.



Implementation
    public function get model():*
    public function set model(value:any):void
Method Detail

actionEnabled

()method
public function actionEnabled(extraParams:Object = null):Boolean

Language Version: ActionScript 3.0
Product Version: Asset Composer Building Block 10.0
Runtime Versions: AIR (unsupported), Flash Player 10.2

Should the action be enabled in toolbar

Parameters

extraParams:Object (default = null) — additional arguements that may be passed to handler (For future use)

Returns
Boolean — flag indicating whether the action should be enabled

actionVisible

()method 
public function actionVisible(extraParams:Object = null):Boolean

Language Version: ActionScript 3.0
Product Version: Asset Composer Building Block 10.0
Runtime Versions: AIR (unsupported), Flash Player 10.2

Should the action be visible in toolbar

Parameters

extraParams:Object (default = null) — additional arguements that may be passed to handler (For future use)

Returns
Boolean — flag indicating whether the action should be visible

handleAction

()method 
public function handleAction(extraParams:Object = null):void

Language Version: ActionScript 3.0
Product Version: Asset Composer Building Block 10.0
Runtime Versions: AIR (unsupported), Flash Player 10.2

Called when user user click an action

Parameters

extraParams:Object (default = null) — additional arguements that may be passed to handler (For future use)