Referencia de ActionScript® 3.0 para la plataforma de Adobe® Flash®
Inicio  |  Ocultar lista de paquetes y clases |  Paquetes  |  Clases  |  Novedades  |  Índice  |  Apéndices  |  ¿Por qué hay texto en inglés?
Filtros: Recuperando datos del servidor...
Recuperando datos del servidor...
com.adobe.solutions.exm.runtime 

IComputedExpression  - AS3 Expression Manager

Paquetecom.adobe.solutions.exm.runtime
Interfazpublic interface IComputedExpression extends IEventDispatcher

Versión del lenguaje: ActionScript 3.0
Versión de producto: Bloque de construcción Expression Manager 10
Versiones de motor de ejecución: AIR (unsupported), Flash Player 10.2

Interface representing an expression managed by the Expression Manager. Consuming applications are expected to obtain a ComputedExpression instance from the Expression Manager and extract the value of the evaluated expression from it:
  • 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.
ComputedExpression instances also dispatch events (ComputationErrorEvent instances) of type "computationErrorEvent" whenever an evaluation error occurs (e.g. a remote function call fails). Apart from binding to the value, applications can listen to these events for detecting errors in evaluation.



Propiedades públicas
 PropiedadDefinido por
  value : Object
[solo lectura] Bindable property which holds the result of expression evaluation and auto-updates on events which should cause the expression to recompute.
IComputedExpression
Métodos públicos
 MétodoDefinido por
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registra un objeto de detector de eventos con un objeto EventDispatcher, de modo que el detector reciba la notificación de un evento.
IEventDispatcher
 Inherited
Distribuye un evento en el flujo del evento.
IEventDispatcher
 Inherited
Comprueba si el objeto EventDispatcher tiene detectores registrados para un tipo concreto de evento.
IEventDispatcher
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Elimina un detector del objeto EventDispatcher.
IEventDispatcher
 Inherited
Comprueba si hay registrado un detector de eventos con este objeto EventDispatcher o con cualquiera de sus ascendientes para el tipo de evento concreto.
IEventDispatcher
Eventos
 Evento Resumen Definido por
  Dispatched whenever an error occurs during computation of the expression.IComputedExpression
Información sobre propiedades

value

propiedad
value:Object  [solo lectura]

Versión del lenguaje: ActionScript 3.0
Versión de producto: Bloque de construcción Expression Manager 10
Versiones de motor de ejecución: 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.

Esta propiedad se puede utilizar como origen para la vinculación de datos. Cuando se modifica esta propiedad, distribuye el evento propertyChange .



Implementación
    public function get value():Object
Información sobre eventos

computationErrorEvent

Evento
Tipo de objeto de evento: com.adobe.solutions.exm.runtime.ComputationErrorEvent

Versión del lenguaje: ActionScript 3.0
Versión de producto: Bloque de construcción Expression Manager 10
Versiones de motor de ejecución: AIR (unsupported), Flash Player 10.2

Dispatched whenever an error occurs during computation of the expression.





[ X ]¿Por qué hay texto en inglés?
Cierto contenido de la Referencia de ActionScript 3.0 se muestra en inglés

No todo el contenido de la Referencia de ActionScript 3.0 se traduce a todos los idiomas. Si un elemento del lenguaje no se traduce, aparecerá en inglés. Por ejemplo, la clase ga.controls.HelpBox no está traducida en ningún idioma. Por lo tanto, en la versión en español de la referencia, la clase ga.controls.HelpBox aparecerá en inglés.