Package | com.adobe.solutions.exm.runtime |
Interface | public interface IComputedExpression extends IEventDispatcher |
Language Version: | ActionScript 3.0 |
Product Version: | Expression Manager Building Block 10 |
Runtime Versions: | AIR (unsupported), Flash Player 10.2 |
- For use-cases where the value is required once and then thrown away, applications can read the 'value' property of the ComputedExpression instance obtained from the Expression Manager and use it. Note that this approach will not work for expressions containing remote function calls which are asynchronous by nature (since the 'value' property will not immediately reflect the actual result of evaluation).
- For longer-running use-cases (e.g. a UX field is bound to the result of expression evaluation), applications must bind to the 'value' property of the ComputedExpression instance obtained from the Expression Manager. This property is a bindable property which auto-updates whenever an event occurs which affects the result of evaluation (e.g. a variable value changes, a remote function call returns, etc.). Binding is the only approach which works for expressions containing remote function calls.
Public Properties
Property | Defined By | ||
---|---|---|---|
value : Object [read-only]
Bindable property which holds the result of expression evaluation and auto-updates on events
which should cause the expression to recompute. | IComputedExpression |
Public Methods
Method | Defined By | ||
---|---|---|---|
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 | ||
Dispatches an event into the event flow. | IEventDispatcher | ||
Checks whether the EventDispatcher object has any listeners registered for a specific type
of event. | IEventDispatcher | ||
Removes a listener from the EventDispatcher object. | IEventDispatcher | ||
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 whenever an error occurs during computation of the expression. | IComputedExpression |
Property Detail
value | property |
value:Object
[read-only] Language Version: | ActionScript 3.0 |
Product Version: | Expression Manager Building Block 10 |
Runtime Versions: | AIR (unsupported), Flash Player 10.2 |
Bindable property which holds the result of expression evaluation and auto-updates on events which should cause the expression to recompute.
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 value():Object
Event Detail
computationErrorEvent | Event |
Event Object Type:
com.adobe.solutions.exm.runtime.ComputationErrorEvent
Language Version: | ActionScript 3.0 |
Product Version: | Expression Manager Building Block 10 |
Runtime Versions: | AIR (unsupported), Flash Player 10.2 |
Dispatched whenever an error occurs during computation of the expression.
Thu Dec 4 2014, 05:50 PM -08:00