The flash.error package contains error classes that are part of the Flash Player Application Programming Interface (API), rather than part of the ActionScript core language.

The ActionScript core language is the part of the language that complies with the ECMAScript standard. The Flash Player API is the part of the language that is specific to ActionScript. The flash.error package relates to Flash Player specific functionality (Flash Player API).

The error classes that are not part of the flash.error package are top level core classes that are based on the ECMAScript standard.

Note: In ActionScript 3.0, exceptions are the primary mechanism for reporting runtime errors. Error events are a secondary mechanism that are used when errors are encountered during an asynchronous operation, such as a call to the Loader.load() method.



 说明
 EOFError 如果尝试读取的内容超出可用数据的末尾,则会引发 EOFError 异常。
 IllegalOperationError 当方法未实现或者实现中未涉及当前用法时,将引发 IllegalOperationError 异常。
 InvalidSWFError Flash Player 遇到损坏的 SWF 文件时,将引发此异常。
 IOError 某些类型的输入或输出失败时,将引发 IOError 异常。
 MemoryError 内存分配请求失败时,将引发 MemoryError 异常。
 ScriptTimeoutError 达到脚本超时间隔时,将引发 ScriptTimeoutError 异常。
 SQLError SQLError 实例提供有关操作失败的详细信息。
 SQLErrorOperation 该类包含一些常量,它们表示 SQLError.operation 属性的可能值。
 StackOverflowError 可用于脚本的堆栈用尽时,ActionScript 将引发 StackOverflowError 异常。