flash.events
public class AsyncErrorEvent
继承AsyncErrorEvent Inheritance ErrorEvent Inheritance TextEvent Inheritance Event Inheritance Object

语言版本 : ActionScript 3.0
Player 版本 : Flash Player 9

如果异常是从本机异步代码中引发的(例如,可能从 LocalConnection、NetConnection、SharedObject 或 NetStream 引发),Flash ® Player 将调度 AsyncErrorEvent。 只有一种类型的异步错误事件:AsyncErrorEvent.ASYNC_ERROR

另请参见

ASYNC_ERROR



公共 属性
 属性定义方
 Inheritedbubbles : Boolean
[read-only] 指示事件是否为冒泡事件。
Event
 Inheritedcancelable : Boolean
[read-only] 指示是否可以阻止与事件相关联的行为。
Event
 Inheritedconstructor : Object
对类对象或给定对象实例的构造函数的引用。
Object
 InheritedcurrentTarget : Object
[read-only] 当前正在使用某个事件侦听器处理 Event 对象的对象。
Event
  error : Error
引发的异常。
AsyncErrorEvent
 InheritedeventPhase : uint
[read-only] 事件流中的当前阶段。
Event
 Inheritedprototype : Object
[static] 对类或函数对象的原型对象的引用。
Object
 Inheritedtarget : Object
[read-only] 事件目标。
Event
 Inheritedtext : String
在 textInput 事件中,由用户输入的字符或字符序列。
TextEvent
 Inheritedtype : String
[read-only] 事件的类型。
Event
公共 方法
 方法定义方
  
AsyncErrorEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, text:String = "", error:Error = null)
创建 AsyncErrorEvent 对象,其中包含有关 asyncError 事件的信息。
AsyncErrorEvent
  
创建 AsyncErrorEvent 对象的副本,并设置每个属性的值以匹配原始属性值。
AsyncErrorEvent
 Inherited
formatToString(className:String, ... arguments):String
在自定义 Event 类中实现 toString() 方法的实用程序函数。
Event
 Inherited
指示对象是否已经定义了指定的属性。
Object
 Inherited
检查是否已对事件调用 preventDefault()。
Event
 Inherited
指示 Object 类的实例是否在指定为参数的对象的原型链中。
Object
 Inherited
如果可以取消事件的默认行为,则取消该行为。
Event
 Inherited
指示指定的属性是否存在、是否可枚举。
Object
 Inherited
设置循环操作动态属性的可用性。
Object
 Inherited
防止对事件流中当前节点中和所有后续节点中的事件侦听器进行处理。
Event
 Inherited
防止对事件流中当前节点的后续节点中的所有事件侦听器进行处理。
Event
  
返回一个字符串,其中包含 AsyncErrorEvent 对象的所有属性。
AsyncErrorEvent
 Inherited
返回指定对象的原始值。
Object
公共 常量
 常量定义方
 InheritedACTIVATE : String = "activate"
[static] 定义 activate 事件对象的 type 属性值。
Event
 InheritedADDED : String = "added"
[static] 定义 added 事件对象的 type 属性值。
Event
 InheritedADDED_TO_STAGE : String = "addedToStage"
[static] 定义 addedToStage 事件对象的 type 属性值。
Event
  ASYNC_ERROR : String = "asyncError"
[static] AsyncErrorEvent.ASYNC_ERROR 常量定义 asyncError 事件对象的 type 属性值。
AsyncErrorEvent
 InheritedCANCEL : String = "cancel"
[static] 定义 cancel 事件对象的 type 属性值。
Event
 InheritedCHANGE : String = "change"
[static] 定义 change 事件对象的 type 属性值。
Event
 InheritedCLOSE : String = "close"
[static] 定义 close 事件对象的 type 属性值。
Event
 InheritedCOMPLETE : String = "complete"
[static] 定义 complete 事件对象的 type 属性值。
Event
 InheritedCONNECT : String = "connect"
[static] 定义 connect 事件对象的 type 属性值。
Event
 InheritedDEACTIVATE : String = "deactivate"
[static] 定义 deactivate 事件对象的 type 属性值。
Event
 InheritedENTER_FRAME : String = "enterFrame"
[static] 定义 enterFrame 事件对象的 type 属性值。
Event
 InheritedERROR : String = "error"
[static] 定义 error 事件对象的 type 属性值。
ErrorEvent
 InheritedFULLSCREEN : String = "fullScreen"
[static] 定义 fullScreen 事件对象的 type 属性值。
Event
 InheritedID3 : String = "id3"
[static] 定义 id3 事件对象的 type 属性值。
Event
 InheritedINIT : String = "init"
[static] 定义 init 事件对象的 type 属性值。
Event
 InheritedLINK : String = "link"
[static] 定义 link 事件对象的 type 属性值。
TextEvent
 InheritedMOUSE_LEAVE : String = "mouseLeave"
[static] 定义 mouseLeave 事件对象的 type 属性值。
Event
 InheritedOPEN : String = "open"
[static] 定义 open 事件对象的 type 属性值。
Event
 InheritedREMOVED : String = "removed"
[static] 定义 removed 事件对象的 type 属性值。
Event
 InheritedREMOVED_FROM_STAGE : String = "removedFromStage"
[static] 定义 removedFromStage 事件对象的 type 属性值。
Event
 InheritedRENDER : String = "render"
[static] 定义 render 事件对象的 type 属性值。
Event
 InheritedRESIZE : String = "resize"
[static] 定义 resize 事件对象的 type 属性值。
Event
 InheritedSCROLL : String = "scroll"
[static] 定义 scroll 事件对象的 type 属性值。
Event
 InheritedSELECT : String = "select"
[static] 定义 select 事件对象的 type 属性值。
Event
 InheritedSOUND_COMPLETE : String = "soundComplete"
[static] 定义 soundComplete 事件对象的 type 属性值。
Event
 InheritedTAB_CHILDREN_CHANGE : String = "tabChildrenChange"
[static] 定义 tabChildrenChange 事件对象的 type 属性值。
Event
 InheritedTAB_ENABLED_CHANGE : String = "tabEnabledChange"
[static] 定义 tabEnabledChange 事件对象的 type 属性值。
Event
 InheritedTAB_INDEX_CHANGE : String = "tabIndexChange"
[static] 定义 tabIndexChange 事件对象的 type 属性值。
Event
 InheritedTEXT_INPUT : String = "textInput"
[static] 定义 textInput 事件对象的 type 属性值。
TextEvent
 InheritedUNLOAD : String = "unload"
[static] 定义 unload 事件对象的 type 属性值。
Event
属性详细信息
error属性
public var error:Error

语言版本 : ActionScript 3.0
Player 版本 : Flash Player 9

引发的异常。

构造函数详细信息
AsyncErrorEvent()构造函数
public function AsyncErrorEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, text:String = "", error:Error = null)

语言版本 : ActionScript 3.0
Player 版本 : Flash Player 9

创建 AsyncErrorEvent 对象,其中包含有关 asyncError 事件的信息。 将 AsyncErrorEvent 对象作为参数传递给事件侦听器。

参数
type:String — 事件的类型。 事件侦听器可以通过继承的 type 属性访问此信息。 只有一种类型的 error 事件:ErrorEvent.ERROR
 
bubbles:Boolean (default = false) — 确定 Event 对象是否冒泡。 事件侦听器可以通过继承的 bubbles 属性访问此信息。
 
cancelable:Boolean (default = false) — 确定是否可以取消 Event 对象。 事件侦听器可以通过继承的 cancelable 属性访问此信息。
 
text:String (default = "") — 要显示为错误消息的文本。 事件侦听器可以通过 text 属性访问此信息。
 
error:Error (default = null) — 发生的异常。
方法详细信息
clone()方法
public override function clone():Event

语言版本 : ActionScript 3.0
Player 版本 : Flash Player 9

创建 AsyncErrorEvent 对象的副本,并设置每个属性的值以匹配原始属性值。

返回
Event — 其属性值与原始属性值匹配的新 AsyncErrorEvent 对象。
toString()方法 
public override function toString():String

语言版本 : ActionScript 3.0
Player 版本 : Flash Player 9

返回一个字符串,其中包含 AsyncErrorEvent 对象的所有属性。 字符串的格式如下:

[AsyncErrorEvent type=value bubbles=value cancelable=value ... error=value]

返回
String — 一个字符串,其中包含 AsyncErrorEvent 对象的所有属性。
常量详细信息
ASYNC_ERROR常量
public static const ASYNC_ERROR:String = "asyncError"

语言版本 : ActionScript 3.0
Player 版本 : Flash Player 9

AsyncErrorEvent.ASYNC_ERROR 常数定义 asyncError 事件对象的 type 属性值。

此事件具有以下属性:

属性
bubblesfalse
cancelablefalse;没有要取消的默认行为。
currentTarget当前正在使用某个事件侦听器处理 Event 对象的对象。
target发生网络操作失败的对象。
error触发此事件的错误。





 

评论添加到页面后给我发送电子邮件 | 评论报告

当前页: http://livedocs.adobe.com/flash/9.0_cn/ActionScriptLangRefV3/flash/events/AsyncErrorEvent.html