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

IVariableResolver  - AS3 Expression Manager

Packagecom.adobe.solutions.exm.runtime
Interfacepublic interface IVariableResolver extends IEventDispatcher
Implementors DDIModelVariableResolver, SimpleVariableResolver

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

Used by the Expression Manager for resolving any variable references encountered in an expression, for setting the values of variables which are targets of expressions and for being notified of externally triggered changes in variable values. A VariableResolver implementation must dispatch a VariableChangeEvent of type "variableChangeEvent" whenever the value of a variable managed by the resolver changes.



Public Methods
 MethodDefined By
 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
  
Returns the value of the given variable.
IVariableResolver
 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
  
setValue(varName:String, value:Object):void
Sets the value of the given variable.
IVariableResolver
 Inherited
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
IEventDispatcher
Events
 Event Summary Defined By
  Dispatched when the value of a variable managed by the resolver changes.IVariableResolver
Method Detail

getValue

()method
public function getValue(varName:String):Object

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

Returns the value of the given variable.

Parameters

varName:String — The fully qualified name of the variable whose value is required.

Returns
Object — The value of the given variable.

setValue

()method 
public function setValue(varName:String, value:Object):void

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

Sets the value of the given variable.

Parameters

varName:String — The fully qualified name of the variable whose value is to be set.
 
value:Object — The value to be set.
Event Detail

variableChangeEvent

Event
Event Object Type: com.adobe.solutions.exm.runtime.VariableChangeEvent

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

Dispatched when the value of a variable managed by the resolver changes.