用于 Adobe® Flash® Platform 的 ActionScript® 3.0 参考
主页  |  隐藏包列表和类列表 |   |   |  新增内容  |  索引  |  附录  |  为什么显示为英语?
过滤条件: 正在从服务器检索数据...
正在从服务器检索数据...
com.adobe.icc.editors.events 

AssetValidationEvent  - AS3 Asset Composer

com.adobe.icc.editors.events
public class AssetValidationEvent
继承AssetValidationEvent Inheritance Event Inheritance Object

语言版本: ActionScript 3.0
产品版本: Asset Composer Building Block 9.5
运行时版本: 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.

相关 API 元素

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


公共属性
 属性由以下参数定义
 Inheritedbubbles : Boolean
[只读] 表示事件是否为冒泡事件。
Event
 Inheritedcancelable : Boolean
[只读] 表示是否可以阻止与事件相关联的行为。
Event
 Inheritedconstructor : Object
对类对象或给定对象实例的构造函数的引用。
Object
 InheritedcurrentTarget : Object
[只读] 当前正在使用某个事件侦听器处理 Event 对象的对象。
Event
  data : *
The data is an arbitrary value associated with the type of fault and varies from case to case.
AssetValidationEvent
 InheritedeventPhase : uint
[只读] 事件流中的当前阶段。
Event
  faultType : int
The faultType corresponds to one of the constants defined in the class AssetValidationFaultType.
AssetValidationEvent
 Inheritedtarget : Object
[只读] 事件目标。
Event
 Inheritedtype : String
[只读] 事件的类型。
Event
公共方法
 方法由以下参数定义
  
AssetValidationEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)
Constructor.
AssetValidationEvent
 Inherited
复制 Event 子类的实例。
Event
 Inherited
formatToString(className:String, ... arguments):String
用于在自定义 ActionScript 3.0 Event 类中实现 toString() 方法的实用程序函数。
Event
 Inherited
表示对象是否已经定义了指定的属性。
Object
 Inherited
检查是否已对事件调用 preventDefault() 方法。
Event
 Inherited
表示 Object 类的实例是否在指定为参数的对象的原型链中。
Object
 Inherited
如果可以取消事件的默认行为,则取消该行为。
Event
 Inherited
表示指定的属性是否存在、是否可枚举。
Object
 Inherited
设置循环操作动态属性的可用性。
Object
 Inherited
防止对事件流中当前节点中和所有后续节点中的事件侦听器进行处理。
Event
 Inherited
防止对事件流中当前节点的后续节点中的所有事件侦听器进行处理。
Event
 Inherited
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。
Object
 Inherited
返回一个字符串,其中包含 Event 对象的所有属性。
Event
 Inherited
返回指定对象的原始值。
Object
公共常量
 常量由以下参数定义
  INVALID : String = "invalid"
[静态] The AssetValidationEvent.INVALID constant defines the value of the type property of the event object for a invalid event.
AssetValidationEvent
  VALID : String = "valid"
[静态] The AssetValidationEvent.VALID constant defines the value of the type property of the event object for a valid event.
AssetValidationEvent
属性详细信息

data

属性
public var data:*

语言版本: ActionScript 3.0
产品版本: Asset Composer Building Block 9.5
运行时版本: 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.

相关 API 元素

faultType

属性 
public var faultType:int

语言版本: ActionScript 3.0
产品版本: Asset Composer Building Block 9.5
运行时版本: 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.

相关 API 元素

构造函数详细信息

AssetValidationEvent

()构造函数
public function AssetValidationEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)

语言版本: ActionScript 3.0
产品版本: Asset Composer Building Block 9.5
运行时版本: AIR (unsupported), Flash Player 10.2

Constructor.

参数
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.
常量详细信息

INVALID

常量
public static const INVALID:String = "invalid"

语言版本: ActionScript 3.0
产品版本: Asset Composer Building Block 9.5
运行时版本: 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

常量 
public static const VALID:String = "valid"

语言版本: ActionScript 3.0
产品版本: Asset Composer Building Block 9.5
运行时版本: 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 ]为什么显示为英语?
《ActionScript 3.0 参考》中的内容以英语显示

《ActionScript 3.0 参考》中的部分内容未翻译成所有语言。当某个语言元素未翻译时,将显示为英语。例如,ga.controls.HelpBox 类未翻译成任何语言。因此在简体中文版的参考中,ga.controls.HelpBox 类显示为英语。