Paket | com.adobe.icc.editors.events |
Klass | public class AssetEvent |
Arv | AssetEvent FlexEvent Event Object |
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Composer Building Block 9.5 |
Körningsmiljöversioner: | AIR (unsupported), Flash Player 10.2 |
This event is dispatched by various asset domain classes to signify events related to operations being carried out on them. For example, the class LetterModel dispatches an event of this type when it is saved. The event can be leveraged to show certain cues on the UI accordingly.
Egenskap | Definieras med | ||
---|---|---|---|
bubbles : Boolean [skrivskyddad]
indikerar om händelsen är en bubblande händelse. | Event | ||
cancelable : Boolean [skrivskyddad]
Indikerar om beteendet som är kopplat till händelsen kan förhindras. | Event | ||
constructor : Object
En referens till klassobjektet eller konstruktorfunktionen för en given objektinstans. | Object | ||
currentTarget : Object [skrivskyddad]
Det objekt som aktivt behandlar Event-objektet med en händelseavlyssnare. | Event | ||
eventPhase : uint [skrivskyddad]
Den nuvarande fasen i händelseflödet. | Event | ||
fault : Fault
The fault object encapsulating the error sent by the server. | AssetEvent | ||
target : Object [skrivskyddad]
Händelsens mål. | Event | ||
type : String [skrivskyddad]
Händelsens typ. | Event |
Metod | Definieras med | ||
---|---|---|---|
Constructor. | AssetEvent | ||
Skapar ett duplikat av en instans av en Event-underklass. | Event | ||
Ett verktyg som används för att implementera metoden toString() i de anpassade klasserna ActionScript 3.0. | Event | ||
Anger om det finns en egenskap angiven för ett objekt. | Object | ||
Kontrollerar om preventDefault()-metoden har anropats för händelsen. | Event | ||
Anger om en instans av klassen Object finns i prototypkedjan för objektet som anges som parameter. | Object | ||
Avbryter en händelses standardbeteende om det beteendet kan avbrytas. | Event | ||
Anger om den angivna egenskapen finns och är uppräkningsbar. | Object | ||
Anger tillgänglighet för en dynamisk egenskap för slingåtgärder. | Object | ||
Förhindrar behandling av händelsehanterare i den aktuella noden och alla noder som följer den aktuella noden i händelseflödet. | Event | ||
Förhindrar behandling av händelsehanterare i noder som följer den aktuella noden i händelseflödet. | Event | ||
Returnerar det här objektets strängrepresentation, formaterad i enlighet med språkspecifika konventioner. | Object | ||
Returnerar en sträng som innehåller alla egenskaper i Event-objektet. | Event | ||
Returnerar det angivna objektets primitiva värde. | Object |
Konstant | Definieras med | ||
---|---|---|---|
SAVE_COMPLETE : String = "saveComplete" [statisk]
The AssetEvent.SAVE_COMPLETE constant defines the value of the
type property of the event object for a saveComplete event. | AssetEvent | ||
SAVE_FAULT : String = "saveFault" [statisk]
The AssetEvent.SAVE_FAULT constant defines the value of the
type property of the event object for a saveFault event. | AssetEvent | ||
SAVING : String = "saving" [statisk]
The AssetEvent.SAVING constant defines the value of the
type property of the event object for a saving event. | AssetEvent |
fault | egenskap |
public var fault:Fault
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Composer Building Block 9.5 |
Körningsmiljöversioner: | AIR (unsupported), Flash Player 10.2 |
The fault object encapsulating the error sent by the server. This property
is applicable only if the event type is saveFault
.
In case of other events, this property remains null and should be ignored.
AssetEvent | () | Konstruktor |
public function AssetEvent(type:String, bubbles:Boolean = true, cancelable:Boolean = false, fault:Fault = null)
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Composer Building Block 9.5 |
Körningsmiljöversioner: | AIR (unsupported), Flash Player 10.2 |
Constructor.
Parametrartype:String — The event type; indicates the action that caused the event.
| |
bubbles:Boolean (default = true ) — Specifies whether the event can bubble up
the display list hierarchy.
| |
cancelable:Boolean (default = false ) — Specifies whether the behavior
associated with the event can be prevented.
| |
fault:Fault (default = null ) — The fault object related to the error sent by the server.
This is applicable only in case of the event type saveFault
|
SAVE_COMPLETE | Konstant |
public static const SAVE_COMPLETE:String = "saveComplete"
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Composer Building Block 9.5 |
Körningsmiljöversioner: | AIR (unsupported), Flash Player 10.2 |
The AssetEvent.SAVE_COMPLETE
constant defines the value of the
type
property of the event object for a saveComplete
event.
The saveComplete
event is dispatched when the domain object has been
successfully saved on the server. Unlike the saving
event, this is dispatched
in an aysnchronous manner only after the server has responded with a result for the save api
call.
This event can be used to stop UI animations indicating "save in progress" or to popup an info box indicating save success.
SAVE_FAULT | Konstant |
public static const SAVE_FAULT:String = "saveFault"
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Composer Building Block 9.5 |
Körningsmiljöversioner: | AIR (unsupported), Flash Player 10.2 |
The AssetEvent.SAVE_FAULT
constant defines the value of the
type
property of the event object for a saveFault
event.
The saveFault
event is dispatched when the server reports an error while
saving the asset on the server. Unlike the saving
event, this is dispatched
in an aysnchronous manner only after the server has responded with a result for the save api
call.
When this event is dispatched, the fault
property contains the fault object
encapsulating the error sent by the server. The fault
property can be used to
determine the faultCode and show an error message accordingly.
This event can be used to stop UI animations indicating "save in progress" or to popup an info box indicating save success.
SAVING | Konstant |
public static const SAVING:String = "saving"
Språkversion: | ActionScript 3.0 |
Produktversion: | Asset Composer Building Block 9.5 |
Körningsmiljöversioner: | AIR (unsupported), Flash Player 10.2 |
The AssetEvent.SAVING
constant defines the value of the
type
property of the event object for a saving
event.
The saving
event is dispatched when the save() method has been
called on the domain object. This event is dispatched before any server api
is invoked but after the domain client validations are complete. This is because
the actual save starts once the client validations are complete.
This event can be used to start a UI animation indicating "save in progress".
Relaterade API-element
Tue Jun 12 2018, 01:40 PM Z