Packageriaidea.utils.zip
Classpublic class ZipEvent
InheritanceZipEvent Inheritance flash.events.Event

ZipEvent类定义与ZipArchive类相关的事件。



Public Properties
 PropertyDefined by
  content : *
[read-only] ZipEvent对象的相关信息。
ZipEvent
  ZIP_CONTENT_LOADED : String = "zip_content_loaded"
[static] 定义zip_content_loaded事件的type属性值,在使用getBitmapByName方法读取zip档案中图片的Bitmap数据完成后调度此事件,ZipEvent对象的content属性包含获取的Bitmap对象。
ZipEvent
  ZIP_FAILED : String = "zip_failed"
[static] 定义zip_failed事件的type属性值,在使用load方法加载zip档案时出错时调度此事件,ZipEvent对象的content属性包含错误信息。
ZipEvent
  ZIP_INIT : String = "zip_init"
[static] 定义zip_init事件的type属性值,在使用load方法加载zip档案完成后调度此事件,ZipEvent对象的content属性为空。
ZipEvent
Public Methods
 MethodDefined by
  
ZipEvent(type:String, content:Boolean = null, bubbles:Boolean = false, cancelable:* = false)
构造函数,使用指定的参数创建新的ZipEvent对象。
ZipEvent
Property detail
contentproperty
content:*  [read-only]

ZipEvent对象的相关信息。

Implementation
    public function get content():*
ZIP_CONTENT_LOADEDproperty 
public static var ZIP_CONTENT_LOADED:String = "zip_content_loaded"

定义zip_content_loaded事件的type属性值,在使用getBitmapByName方法读取zip档案中图片的Bitmap数据完成后调度此事件,ZipEvent对象的content属性包含获取的Bitmap对象。

ZIP_FAILEDproperty 
public static var ZIP_FAILED:String = "zip_failed"

定义zip_failed事件的type属性值,在使用load方法加载zip档案时出错时调度此事件,ZipEvent对象的content属性包含错误信息。

ZIP_INITproperty 
public static var ZIP_INIT:String = "zip_init"

定义zip_init事件的type属性值,在使用load方法加载zip档案完成后调度此事件,ZipEvent对象的content属性为空。

Constructor detail
ZipEvent()constructor
public function ZipEvent(type:String, content:Boolean = null, bubbles:Boolean = false, cancelable:* = false)

构造函数,使用指定的参数创建新的ZipEvent对象。

Parameters
type:String — 事件类型
 
content:Boolean (default = null) — 事件相关内容
 
bubbles:Boolean (default = false) — 确定ZipEvent对象是否参与事件流的冒泡阶段。 默认值为false。
 
cancelable:* (default = false) — 确定是否可以取消ZipEvent对象。 默认值为false。