Guida di riferimento di ActionScript® 3.0 per la piattaforma Adobe® Flash®
Home  |  Nascondi elenco pacchetti e classi |  Pacchetti  |  Classi  |  Novità  |  Indice  |  Appendici  |  Perché in inglese?
Filtri: Recupero dati dal server...
Recupero dati dal server...
com.adobe.icc.editors.events 

AssetValidationEvent  - AS3 Asset Composer

Pacchettocom.adobe.icc.editors.events
Classepublic class AssetValidationEvent
EreditarietàAssetValidationEvent Inheritance Event Inheritance Object

Versione linguaggio: ActionScript 3.0
Versione prodotto: Blocco costitutivo Asset Composer 9.5
Versioni runtime: AIR (unsupported), Flash Player 10.2

The AssetValidationEvent class represents the event object passed to the event listener for domain api invokers.

This event is dispatched by various asset domain classes when the validate() method has been invoked on them. This event encapsulates the result of the client side validations performed on the domain object the validate() api was called for.

Elementi API correlati

com.adobe.icc.editors.model.ModuleModel.validate()


Proprietà pubbliche
 ProprietàDefinito da
 Inheritedbubbles : Boolean
[sola lettura] Indica se un evento è un evento di bubbling.
Event
 Inheritedcancelable : Boolean
[sola lettura] Indica se il comportamento associato all'evento può essere impedito.
Event
 Inheritedconstructor : Object
Un riferimento all'oggetto classe o alla funzione di costruzione per una determinata istanza di oggetto.
Object
 InheritedcurrentTarget : Object
[sola lettura] L'oggetto che elabora attivamente l'oggetto Event con un listener di eventi.
Event
  data : *
The data is an arbitrary value associated with the type of fault and varies from case to case.
AssetValidationEvent
 InheritedeventPhase : uint
[sola lettura] La fase attuale del flusso di eventi.
Event
  faultType : int
The faultType corresponds to one of the constants defined in the class AssetValidationFaultType.
AssetValidationEvent
 Inheritedtarget : Object
[sola lettura] Il target dell'evento.
Event
 Inheritedtype : String
[sola lettura] Il tipo di evento.
Event
Metodi pubblici
 MetodoDefinito da
  
AssetValidationEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)
Constructor.
AssetValidationEvent
 Inherited
Duplica un'istanza di una sottoclasse Event.
Event
 Inherited
formatToString(className:String, ... arguments):String
Una funzione dell'utilità per l'implementazione del metodo toString() in classi Event ActionScript 3.0 personalizzate.
Event
 Inherited
Indica se per un oggetto è definita una proprietà specifica.
Object
 Inherited
Verifica se sull'evento è stato chiamato il metodo preventDefault().
Event
 Inherited
Indica se un'istanza della classe Object si trova nella catena di prototipi dell'oggetto specificato come parametro.
Object
 Inherited
Annulla il comportamento predefinito di un evento se tale comportamento può essere annullato.
Event
 Inherited
Indica se la proprietà specificata esiste ed è enumerabile.
Object
 Inherited
Imposta la disponibilità di una proprietà dinamica per le operazioni cicliche.
Object
 Inherited
Impedisce l'elaborazione di tutti i listener di eventi nel nodo corrente e in tutti i nodi successivi del flusso di eventi.
Event
 Inherited
Impedisce l'elaborazione di tutti i listener di eventi nei nodi del flusso di eventi successivi a quello corrente.
Event
 Inherited
Restituisce la rappresentazione in formato stringa di questo oggetto, formattato in base alle convenzioni specifiche per le versioni localizzate.
Object
 Inherited
Restituisce una stringa che contiene tutte le proprietà dell'oggetto Event.
Event
 Inherited
Restituisce il valore di base dell'oggetto specificato.
Object
Costanti pubbliche
 CostanteDefinito da
  INVALID : String = "invalid"
[statico] The AssetValidationEvent.INVALID constant defines the value of the type property of the event object for a invalid event.
AssetValidationEvent
  VALID : String = "valid"
[statico] The AssetValidationEvent.VALID constant defines the value of the type property of the event object for a valid event.
AssetValidationEvent
Descrizione delle proprietà

data

proprietà
public var data:*

Versione linguaggio: ActionScript 3.0
Versione prodotto: Blocco costitutivo Asset Composer 9.5
Versioni runtime: AIR (unsupported), Flash Player 10.2

The data is an arbitrary value associated with the type of fault and varies from case to case. The following table illustrates the association between fault codes and the related data:

Fault CodeData
AssetValidationFaultType.INCOMPATIBLE_DATADICTIONARYArray of assets dependent upon the target asset
This property is applicable for the invalid event type. For the case of valid event type, this property must be ignored.

Elementi API correlati

faultType

proprietà 
public var faultType:int

Versione linguaggio: ActionScript 3.0
Versione prodotto: Blocco costitutivo Asset Composer 9.5
Versioni runtime: AIR (unsupported), Flash Player 10.2

The faultType corresponds to one of the constants defined in the class AssetValidationFaultType.

This property is applicable for the invalid event type. For the case of valid event type, this property must be ignored.

Elementi API correlati

Descrizione della funzione di costruzione

AssetValidationEvent

()Funzione di costruzione
public function AssetValidationEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)

Versione linguaggio: ActionScript 3.0
Versione prodotto: Blocco costitutivo Asset Composer 9.5
Versioni runtime: AIR (unsupported), Flash Player 10.2

Constructor.

Parametri
type:String — The event type; indicates the action that caused the event.
 
bubbles:Boolean (default = false) — 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.
Descrizione delle costanti

INVALID

Costante
public static const INVALID:String = "invalid"

Versione linguaggio: ActionScript 3.0
Versione prodotto: Blocco costitutivo Asset Composer 9.5
Versioni runtime: AIR (unsupported), Flash Player 10.2

The AssetValidationEvent.INVALID constant defines the value of the type property of the event object for a invalid event.

The invalid event is dispatched when the validations executed on the domain object fail for some reason. The validations are run implicitly when the domain object is saved or explicitly when the validate() method is invoked on a domain object like TextModel, ListModel etc.

When this event is dispatched, the properties faultType and data contain meaningful values and can be read to find out the reason for failure and any data associated.

VALID

Costante 
public static const VALID:String = "valid"

Versione linguaggio: ActionScript 3.0
Versione prodotto: Blocco costitutivo Asset Composer 9.5
Versioni runtime: AIR (unsupported), Flash Player 10.2

The AssetValidationEvent.VALID constant defines the value of the type property of the event object for a valid event.

The valid event is dispatched when the validations executed on the domain object are successful. The validations are run implicitly when the domain object is saved or explicitly when the validate() method is invoked on a domain object like TextModel, ListModel etc.





[ X ]Perché in inglese?
Il contenuto della Guida di riferimento di ActionScript 3.0 appare in inglese

Non tutte le parti della Guida di riferimento di ActionScript 3.0 sono tradotte in tutte le lingue. Quando un elemento del linguaggio non è tradotto, viene riportato in inglese. Ad esempio, la classe ga.controls.HelpBox non è tradotta in nessuna lingua. Pertanto, nella versione italiana della guida di riferimento, la descrizione della classe ga.controls.HelpBox è riportata in inglese.