ActionScript® 3.0 — dokumentacja dla platformy Adobe® Flash®
Strona główna  |  Ukryj listę pakietów i klas |  Pakiety  |  Klasy  |  Nowości  |  Indeks  |  Dodatki  |  Dlaczego język angielski?
Filtry: Pobieranie danych z serwera...
Pobieranie danych z serwera...
com.adobe.solutions.exm.runtime 

IComputedExpression  - AS3 Menedżer wyrażeń

Pakietcom.adobe.solutions.exm.runtime
Interfejspublic interface IComputedExpression extends IEventDispatcher

Wersja języka: ActionScript 3.0
Wersja produktu: Expression Manager Building Block 10
Wersje środowiska wykonawczego: 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.



Właściwości publiczne
 WłaściwośćZdefiniowane przez
  value : Object
[tylko do odczytu] Bindable property which holds the result of expression evaluation and auto-updates on events which should cause the expression to recompute.
IComputedExpression
Metody publiczne
 MetodaZdefiniowane przez
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Rejestruje obiekt detektora zdarzeń w obiekcie EventDispatcher, dzięki czemu detektor będzie otrzymywał powiadomienia o zdarzeniu.
IEventDispatcher
 Inherited
Wywołuje zdarzenie, tj. kieruje je do przepływu zdarzeń.
IEventDispatcher
 Inherited
Sprawdza, czy obiekt EventDispatcher zawiera jakiekolwiek detektory zarejestrowane dla konkretnego typu zdarzeń.
IEventDispatcher
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Usuwa detektor z obiektu EventDispatcher.
IEventDispatcher
 Inherited
Sprawdza, czy detektor zdarzeń określonego typu jest zarejestrowany w tym obiekcie EventDispatcher lub jego elementach macierzystych.
IEventDispatcher
Zdarzenia
 Zdarzenie Podsumowanie Zdefiniowane przez
  Dispatched whenever an error occurs during computation of the expression.IComputedExpression
Szczegół właściwości

value

właściwość
value:Object  [tylko do odczytu]

Wersja języka: ActionScript 3.0
Wersja produktu: Expression Manager Building Block 10
Wersje środowiska wykonawczego: 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.

Ta właściwość może być używana jako źródło dla tworzenia powiązań danych. Jeśli ta właściwość zostanie zmodyfikowana, zostanie wywołane zdarzenie propertyChange .



Implementacja
    public function get value():Object
Szczegół zdarzenia

computationErrorEvent

Zdarzenie
Typ obiektu zdarzenia: com.adobe.solutions.exm.runtime.ComputationErrorEvent

Wersja języka: ActionScript 3.0
Wersja produktu: Expression Manager Building Block 10
Wersje środowiska wykonawczego: AIR (unsupported), Flash Player 10.2

Dispatched whenever an error occurs during computation of the expression.





[ X ]Dlaczego język angielski?
Treść dokumentacji języka ActionScript 3.0 wyświetlana w języku angielskim

Niektóre części dokumentacji języka ActionScript 3.0 nie są przetłumaczone na poszczególne języki. Gdy element nie jest przetłumaczony na dany język, jest wyświetlany tekst angielski. Na przykład opis klasy ga.controls.HelpBox nie jest przetłumaczony na żaden dodatkowy język. Z tego powodu polska wersja dokumentacji zawiera opis klasy ga.controls.HelpBox w języku angielskim.