用于 Adobe® Flash® Platform 的 ActionScript® 3.0 参考
主页  |  隐藏包列表和类列表 |   |   |  新增内容  |  索引  |  附录  |  为什么显示为英语?
过滤条件: AIR 30.0 和更早版本, Flash Player 30.0 和更早版本, Flash Lite 4
Flex 4.6 和更早版本, Flash Pro CS6 和更早版本
隐藏过滤条件
air.update 

ApplicationUpdater  - AS3

x

顶级
adobe.utils
air.desktop
air.net
air.update
air.update.events
coldfusion.air
coldfusion.air.errors
coldfusion.air.events
coldfusion.service
coldfusion.service.events
coldfusion.service.mxml
com.adobe.acm.solutions.authoring.domain.extensions
com.adobe.acm.solutions.ccr.domain.extensions
com.adobe.consulting.pst.vo
com.adobe.dct.component
com.adobe.dct.component.datadictionary
com.adobe.dct.component.datadictionaryElement
com.adobe.dct.component.dataElementsPanel
com.adobe.dct.component.toolbars
com.adobe.dct.event
com.adobe.dct.exp
com.adobe.dct.model
com.adobe.dct.service
com.adobe.dct.service.provider
com.adobe.dct.transfer
com.adobe.dct.util
com.adobe.dct.view
com.adobe.ep.taskmanagement.domain
com.adobe.ep.taskmanagement.event
com.adobe.ep.taskmanagement.filter
com.adobe.ep.taskmanagement.services
com.adobe.ep.taskmanagement.util
com.adobe.ep.ux.attachmentlist.component
com.adobe.ep.ux.attachmentlist.domain
com.adobe.ep.ux.attachmentlist.domain.events
com.adobe.ep.ux.attachmentlist.domain.renderers
com.adobe.ep.ux.attachmentlist.skin
com.adobe.ep.ux.attachmentlist.skin.renderers
com.adobe.ep.ux.content.event
com.adobe.ep.ux.content.factory
com.adobe.ep.ux.content.handlers
com.adobe.ep.ux.content.managers
com.adobe.ep.ux.content.model.asset
com.adobe.ep.ux.content.model.preview
com.adobe.ep.ux.content.model.relation
com.adobe.ep.ux.content.model.search
com.adobe.ep.ux.content.model.toolbar
com.adobe.ep.ux.content.search
com.adobe.ep.ux.content.services
com.adobe.ep.ux.content.services.load
com.adobe.ep.ux.content.services.permissions
com.adobe.ep.ux.content.services.preview
com.adobe.ep.ux.content.services.providers
com.adobe.ep.ux.content.services.query
com.adobe.ep.ux.content.services.relationships
com.adobe.ep.ux.content.services.search.lccontent
com.adobe.ep.ux.content.services.version
com.adobe.ep.ux.content.view
com.adobe.ep.ux.content.view.components.activate
com.adobe.ep.ux.content.view.components.grid
com.adobe.ep.ux.content.view.components.grid.hover
com.adobe.ep.ux.content.view.components.grid.hover.component
com.adobe.ep.ux.content.view.components.grid.renderers
com.adobe.ep.ux.content.view.components.relationships
com.adobe.ep.ux.content.view.components.review
com.adobe.ep.ux.content.view.components.search.renderers
com.adobe.ep.ux.content.view.components.searchpod
com.adobe.ep.ux.content.view.components.toolbar
com.adobe.ep.ux.content.view.components.toolbar.controlRenderers
com.adobe.ep.ux.content.view.components.version
com.adobe.ep.ux.documentsubmit.component
com.adobe.ep.ux.documentsubmit.domain
com.adobe.ep.ux.documentsubmit.skin
com.adobe.ep.ux.taskaction.component
com.adobe.ep.ux.taskaction.domain
com.adobe.ep.ux.taskaction.domain.events
com.adobe.ep.ux.taskaction.skin
com.adobe.ep.ux.taskdetails.component
com.adobe.ep.ux.taskdetails.domain
com.adobe.ep.ux.taskdetails.skin
com.adobe.ep.ux.tasklist.component
com.adobe.ep.ux.tasklist.domain
com.adobe.ep.ux.tasklist.skin
com.adobe.ep.ux.webdocumentviewer.domain
com.adobe.exm.expression
com.adobe.exm.expression.error
com.adobe.exm.expression.event
com.adobe.exm.expression.impl
com.adobe.fiber.runtime.lib
com.adobe.fiber.services
com.adobe.fiber.services.wrapper
com.adobe.fiber.styles
com.adobe.fiber.util
com.adobe.fiber.valueobjects
com.adobe.gravity.binding
com.adobe.gravity.context
com.adobe.gravity.flex.bundleloader
com.adobe.gravity.flex.progress
com.adobe.gravity.flex.serviceloader
com.adobe.gravity.framework
com.adobe.gravity.init
com.adobe.gravity.service.bundleloader
com.adobe.gravity.service.logging
com.adobe.gravity.service.manifest
com.adobe.gravity.service.progress
com.adobe.gravity.tracker
com.adobe.gravity.ui
com.adobe.gravity.utility
com.adobe.gravity.utility.async
com.adobe.gravity.utility.error
com.adobe.gravity.utility.events
com.adobe.gravity.utility.factory
com.adobe.gravity.utility.flex.async
com.adobe.gravity.utility.logging
com.adobe.gravity.utility.message
com.adobe.gravity.utility.sequence
com.adobe.gravity.utility.url
com.adobe.guides.control
com.adobe.guides.domain
com.adobe.guides.i18n
com.adobe.guides.spark.components.skins
com.adobe.guides.spark.components.skins.mx
com.adobe.guides.spark.headers.components
com.adobe.guides.spark.headers.skins
com.adobe.guides.spark.layouts.components
com.adobe.guides.spark.layouts.skins
com.adobe.guides.spark.navigators.components
com.adobe.guides.spark.navigators.renderers
com.adobe.guides.spark.navigators.skins
com.adobe.guides.spark.util
com.adobe.guides.spark.wrappers.components
com.adobe.guides.spark.wrappers.skins
com.adobe.guides.submit
com.adobe.icc.dc.domain
com.adobe.icc.dc.domain.factory
com.adobe.icc.editors.events
com.adobe.icc.editors.handlers
com.adobe.icc.editors.managers
com.adobe.icc.editors.model
com.adobe.icc.editors.model.config
com.adobe.icc.editors.model.el
com.adobe.icc.editors.model.el.operands
com.adobe.icc.editors.model.el.operators
com.adobe.icc.enum
com.adobe.icc.external.dc
com.adobe.icc.obj
com.adobe.icc.services
com.adobe.icc.services.category
com.adobe.icc.services.config
com.adobe.icc.services.download
com.adobe.icc.services.export
com.adobe.icc.services.external
com.adobe.icc.services.formbridge
com.adobe.icc.services.fragmentlayout
com.adobe.icc.services.layout
com.adobe.icc.services.letter
com.adobe.icc.services.locator
com.adobe.icc.services.module
com.adobe.icc.services.render
com.adobe.icc.services.submit
com.adobe.icc.services.user
com.adobe.icc.token
com.adobe.icc.vo
com.adobe.icc.vo.render
com.adobe.icomm.assetplacement.controller
com.adobe.icomm.assetplacement.controller.utils
com.adobe.icomm.assetplacement.data
com.adobe.icomm.assetplacement.model
com.adobe.livecycle.assetmanager.client
com.adobe.livecycle.assetmanager.client.event
com.adobe.livecycle.assetmanager.client.handler
com.adobe.livecycle.assetmanager.client.managers
com.adobe.livecycle.assetmanager.client.model
com.adobe.livecycle.assetmanager.client.model.cms
com.adobe.livecycle.assetmanager.client.service
com.adobe.livecycle.assetmanager.client.service.search
com.adobe.livecycle.assetmanager.client.service.search.cms
com.adobe.livecycle.assetmanager.client.utils
com.adobe.livecycle.content
com.adobe.livecycle.rca.model
com.adobe.livecycle.rca.model.constant
com.adobe.livecycle.rca.model.document
com.adobe.livecycle.rca.model.participant
com.adobe.livecycle.rca.model.reminder
com.adobe.livecycle.rca.model.stage
com.adobe.livecycle.rca.service
com.adobe.livecycle.rca.service.core
com.adobe.livecycle.rca.service.core.delegate
com.adobe.livecycle.rca.service.process
com.adobe.livecycle.rca.service.process.delegate
com.adobe.livecycle.rca.token
com.adobe.livecycle.ria.security.api
com.adobe.livecycle.ria.security.service
com.adobe.mosaic.layouts
com.adobe.mosaic.layouts.dragAndDrop
com.adobe.mosaic.layouts.interfaces
com.adobe.mosaic.mxml
com.adobe.mosaic.om.constants
com.adobe.mosaic.om.events
com.adobe.mosaic.om.impl
com.adobe.mosaic.om.interfaces
com.adobe.mosaic.skinning
com.adobe.mosaic.sparklib.editors
com.adobe.mosaic.sparklib.optionMenu
com.adobe.mosaic.sparklib.scrollableMenu
com.adobe.mosaic.sparklib.scrollableMenu.skins
com.adobe.mosaic.sparklib.tabLayout
com.adobe.mosaic.sparklib.tabLayout.events
com.adobe.mosaic.sparklib.tabLayout.layouts
com.adobe.mosaic.sparklib.tabLayout.skins
com.adobe.mosaic.sparklib.text
com.adobe.mosaic.sparklib.util
com.adobe.solutions.acm.authoring.presentation
com.adobe.solutions.acm.authoring.presentation.actionbar
com.adobe.solutions.acm.authoring.presentation.common
com.adobe.solutions.acm.authoring.presentation.events
com.adobe.solutions.acm.authoring.presentation.fragment
com.adobe.solutions.acm.authoring.presentation.letter
com.adobe.solutions.acm.authoring.presentation.letter.data
com.adobe.solutions.acm.authoring.presentation.preview
com.adobe.solutions.acm.authoring.presentation.rte
com.adobe.solutions.acm.ccr.presentation
com.adobe.solutions.acm.ccr.presentation.contentcapture
com.adobe.solutions.acm.ccr.presentation.contentcapture.events
com.adobe.solutions.acm.ccr.presentation.contentcapture.preview
com.adobe.solutions.acm.ccr.presentation.datacapture
com.adobe.solutions.acm.ccr.presentation.datacapture.renderers
com.adobe.solutions.acm.ccr.presentation.pdf
com.adobe.solutions.exm
com.adobe.solutions.exm.authoring
com.adobe.solutions.exm.authoring.components.controls
com.adobe.solutions.exm.authoring.components.toolbars
com.adobe.solutions.exm.authoring.domain
com.adobe.solutions.exm.authoring.domain.expression
com.adobe.solutions.exm.authoring.domain.impl
com.adobe.solutions.exm.authoring.domain.method
com.adobe.solutions.exm.authoring.domain.variable
com.adobe.solutions.exm.authoring.enum
com.adobe.solutions.exm.authoring.events
com.adobe.solutions.exm.authoring.model
com.adobe.solutions.exm.authoring.renderer
com.adobe.solutions.exm.authoring.view
com.adobe.solutions.exm.expression
com.adobe.solutions.exm.impl
com.adobe.solutions.exm.impl.method
com.adobe.solutions.exm.method
com.adobe.solutions.exm.mock
com.adobe.solutions.exm.mock.method
com.adobe.solutions.exm.runtime
com.adobe.solutions.exm.runtime.impl
com.adobe.solutions.exm.variable
com.adobe.solutions.prm.constant
com.adobe.solutions.prm.domain
com.adobe.solutions.prm.domain.factory
com.adobe.solutions.prm.domain.impl
com.adobe.solutions.prm.domain.manager
com.adobe.solutions.prm.presentation.asset
com.adobe.solutions.prm.presentation.constant
com.adobe.solutions.prm.presentation.document
com.adobe.solutions.prm.presentation.event
com.adobe.solutions.prm.presentation.file
com.adobe.solutions.prm.presentation.project
com.adobe.solutions.prm.presentation.team
com.adobe.solutions.prm.presentation.util
com.adobe.solutions.prm.service
com.adobe.solutions.prm.services.impl
com.adobe.solutions.prm.vo
com.adobe.solutions.rca.constant
com.adobe.solutions.rca.domain
com.adobe.solutions.rca.domain.common
com.adobe.solutions.rca.domain.factory
com.adobe.solutions.rca.domain.impl
com.adobe.solutions.rca.domain.impl.manager
com.adobe.solutions.rca.domain.manager
com.adobe.solutions.rca.presentation
com.adobe.solutions.rca.presentation.comment
com.adobe.solutions.rca.presentation.constant
com.adobe.solutions.rca.presentation.event
com.adobe.solutions.rca.presentation.gantt
com.adobe.solutions.rca.presentation.gantt.ruler
com.adobe.solutions.rca.presentation.template
com.adobe.solutions.rca.presentation.template.audit
com.adobe.solutions.rca.presentation.template.definition
com.adobe.solutions.rca.presentation.template.documents
com.adobe.solutions.rca.presentation.template.stages
com.adobe.solutions.rca.presentation.util
com.adobe.solutions.rca.service
com.adobe.solutions.rca.services.impl
com.adobe.solutions.rca.vo
com.adobe.solutions.rca.vo.um
com.adobe.viewsource
fl.accessibility
fl.containers
fl.controls
fl.controls.dataGridClasses
fl.controls.listClasses
fl.controls.progressBarClasses
fl.core
fl.data
fl.display
fl.events
fl.ik
fl.lang
fl.livepreview
fl.managers
fl.motion
fl.motion.easing
fl.rsl
fl.text
fl.transitions
fl.transitions.easing
fl.video
flash.accessibility
flash.concurrent
flash.crypto
flash.data
flash.desktop
flash.display
flash.display3D
flash.display3D.textures
flash.errors
flash.events
flash.external
flash.filesystem
flash.filters
flash.geom
flash.globalization
flash.html
flash.media
flash.net
flash.net.dns
flash.net.drm
flash.notifications
flash.permissions
flash.printing
flash.profiler
flash.sampler
flash.security
flash.sensors
flash.system
flash.text
flash.text.engine
flash.text.ime
flash.ui
flash.utils
flash.xml
flashx.textLayout
flashx.textLayout.compose
flashx.textLayout.container
flashx.textLayout.conversion
flashx.textLayout.edit
flashx.textLayout.elements
flashx.textLayout.events
flashx.textLayout.factory
flashx.textLayout.formats
flashx.textLayout.operations
flashx.textLayout.utils
flashx.undo
ga.controls
ga.layouts
ga.model
ga.uiComponents
ga.util
ga.views
ga.wrappers
lc.foundation
lc.foundation.domain
lc.foundation.events
lc.foundation.ui
lc.foundation.util
lc.preloader
lc.procmgmt
lc.procmgmt.commands
lc.procmgmt.domain
lc.procmgmt.events
lc.procmgmt.formbridge
lc.procmgmt.impl
lc.procmgmt.ui.attachments
lc.procmgmt.ui.controls
lc.procmgmt.ui.controls.card
lc.procmgmt.ui.controls.renderer
lc.procmgmt.ui.help
lc.procmgmt.ui.layout
lc.procmgmt.ui.presentationmodel
lc.procmgmt.ui.process
lc.procmgmt.ui.search
lc.procmgmt.ui.startpoint
lc.procmgmt.ui.task
lc.procmgmt.ui.task.form
lc.procmgmt.ui.task.form.commands
lc.procmgmt.ui.tracking
mx.accessibility
mx.automation
mx.automation.air
mx.automation.delegates
mx.automation.delegates.advancedDataGrid
mx.automation.delegates.charts
mx.automation.delegates.containers
mx.automation.delegates.controls
mx.automation.delegates.controls.dataGridClasses
mx.automation.delegates.controls.fileSystemClasses
mx.automation.delegates.core
mx.automation.delegates.flashflexkit
mx.automation.events
mx.binding
mx.binding.utils
mx.charts
mx.charts.chartClasses
mx.charts.effects
mx.charts.effects.effectClasses
mx.charts.events
mx.charts.renderers
mx.charts.series
mx.charts.series.items
mx.charts.series.renderData
mx.charts.styles
mx.collections
mx.collections.errors
mx.containers
mx.containers.accordionClasses
mx.containers.dividedBoxClasses
mx.containers.errors
mx.containers.utilityClasses
mx.controls
mx.controls.advancedDataGridClasses
mx.controls.dataGridClasses
mx.controls.listClasses
mx.controls.menuClasses
mx.controls.olapDataGridClasses
mx.controls.scrollClasses
mx.controls.sliderClasses
mx.controls.textClasses
mx.controls.treeClasses
mx.controls.videoClasses
mx.core
mx.core.windowClasses
mx.data
mx.data.crypto
mx.data.errors
mx.data.events
mx.data.messages
mx.data.mxml
mx.data.offline.errors
mx.data.utils
mx.effects
mx.effects.easing
mx.effects.effectClasses
mx.events
mx.filters
mx.flash
mx.formatters
mx.geom
mx.graphics
mx.graphics.codec
mx.graphics.shaderClasses
mx.logging
mx.logging.errors
mx.logging.targets
mx.managers
mx.messaging
mx.messaging.channels
mx.messaging.config
mx.messaging.errors
mx.messaging.events
mx.messaging.management
mx.messaging.messages
mx.modules
mx.netmon
mx.olap
mx.olap.aggregators
mx.preloaders
mx.printing
mx.resources
mx.rpc
mx.rpc.events
mx.rpc.http
mx.rpc.http.mxml
mx.rpc.livecycle
mx.rpc.mxml
mx.rpc.remoting
mx.rpc.remoting.mxml
mx.rpc.soap
mx.rpc.soap.mxml
mx.rpc.wsdl
mx.rpc.xml
mx.skins
mx.skins.halo
mx.skins.spark
mx.skins.wireframe
mx.skins.wireframe.windowChrome
mx.states
mx.styles
mx.utils
mx.validators
org.osmf.containers
org.osmf.display
org.osmf.elements
org.osmf.events
org.osmf.layout
org.osmf.logging
org.osmf.media
org.osmf.metadata
org.osmf.net
org.osmf.net.dvr
org.osmf.net.httpstreaming
org.osmf.net.metrics
org.osmf.net.qos
org.osmf.net.rtmpstreaming
org.osmf.net.rules
org.osmf.traits
org.osmf.utils
spark.accessibility
spark.automation.delegates
spark.automation.delegates.components
spark.automation.delegates.components.gridClasses
spark.automation.delegates.components.mediaClasses
spark.automation.delegates.components.supportClasses
spark.automation.delegates.skins.spark
spark.automation.events
spark.collections
spark.components
spark.components.calendarClasses
spark.components.gridClasses
spark.components.mediaClasses
spark.components.supportClasses
spark.components.windowClasses
spark.core
spark.effects
spark.effects.animation
spark.effects.easing
spark.effects.interpolation
spark.effects.supportClasses
spark.events
spark.filters
spark.formatters
spark.formatters.supportClasses
spark.globalization
spark.globalization.supportClasses
spark.layouts
spark.layouts.supportClasses
spark.managers
spark.modules
spark.preloaders
spark.primitives
spark.primitives.supportClasses
spark.skins
spark.skins.mobile
spark.skins.mobile.supportClasses
spark.skins.spark
spark.skins.spark.mediaClasses.fullScreen
spark.skins.spark.mediaClasses.normal
spark.skins.spark.windowChrome
spark.skins.wireframe
spark.skins.wireframe.mediaClasses
spark.skins.wireframe.mediaClasses.fullScreen
spark.transitions
spark.utils
spark.validators
spark.validators.supportClasses
xd.core.axm.enterprise.view.components
xd.core.axm.enterprise.view.skins
xd.core.axm.view.components
xd.core.axm.view.components.support

语言元素

全局常量
全局函数
运算符
语句、关键字和指令
特殊类型

附录

新增内容
编译器错误
编译器警告
运行时错误
迁移到 ActionScript 3
支持的字符集
仅适用于 MXML 的标签
Motion XML 元素
Timed Text 标记
不推荐使用的元素的列表
AccessibilityImplementation 常量
如何使用 ActionScript 示例
法律声明
air.update
public class ApplicationUpdater
继承ApplicationUpdater Inheritance EventDispatcher Inheritance Object

语言版本: ActionScript 3.0
运行时版本: AIR 1.5

ApplicationUpdater 类定义 Adobe® AIR® 应用程序更新框架的基本功能,但不提供任何默认的用户界面。(ApplicationUpdaterUI 类包括更新功能 默认的用户界面。)

此类包括在 Adobe AIR SDK 所含的 applicationupdater_ui.swc 文件中。applicationupdater_ui.swc 文件包含在 AIR SDK 的 frameworks/libs/air 目录下。

创建 Adobe AIR 项目时,Adobe® Flex™ Builder™ 将自动加载此类。使用 Adobe® Flex™ SDK 编译应用程序时,应当包括此 SWC 文件。

管理应用程序的更新可能非常复杂。AIR 更新框架提供的 API 可帮助开发人员在 AIR 应用程序中提供良好的更新功能。AIR 更新框架中的功能帮助开发人员完成以下工作:

  • 根据某一时间间隔或用户请求定期检查更新

  • 从 Web 源下载 AIR 文件(更新)

  • 在首次运行新安装的版本时向用户发出警告

  • 确认用户希望检查更新

  • 向用户显示有关新的更新版本的信息

  • 向用户显示下载进度和错误信息

AIR 更新框架允许您将有关 AIR 应用程序更新版本的信息存储在简单 XML 配置文件中。对于大多数应用程序,设置这些配置文件以及包括一些基本代码可以为最终用户提供良好的更新功能。

如果要定义自己的用户界面以便与 AIR 更新框架配合使用,请使用 AIRUpdater 类。

更新过程包括一系列状态。updater 对象的 currentState 属性反映 updater 的当前状态:

currentState 值 说明
"UNINITIALIZED"updater 尚未初始化。
"INITIALIZING"updater 正在初始化。
"READY"updater 已初始化
"BEFORE_CHECKING"updater 尚未检查更新描述符文件。
"CHECKING"updater 正在检查更新描述符文件。
"AVAILABLE"更新描述符文件可用。
"DOWNLOADING"updater 正在下载 AIR 文件。
"DOWNLOADED"updater 已下载 AIR 文件。
"INSTALLING"updater 正在安装 AIR 文件。
"PENDING_INSTALLING"updater 已初始化,但存在未处理的更新。

使用 AIR Debug Launcher (ADL) 应用程序测试某个应用程序时,尝试更新该应用程序会导致 IllegalOperationError 异常。

仅桌面配置文件支持 AIR 更新框架。扩展桌面应用程序(使用本机安装程序安装的应用程序)和移动配置文件(使用 ActionScript 3.0 编写的 iPhone 应用程序)都不支持该更新框架。在运行时检查 Updater.isSupported 属性以查看是否支持更新框架。

有关使用 AIR 更新框架的详细信息,请参阅构建 Adobe AIR 应用程序中的“更新 AIR 应用程序”一章。

相关 API 元素



公共属性
 属性由以下参数定义
      configurationFile : File
设置 delay 和 updateURL 属性值的配置文件所在的位置。
ApplicationUpdater
 Inheritedconstructor : Object
对类对象或给定对象实例的构造函数的引用。
Object
      currentState : String
[只读] updater 的内部状态。
ApplicationUpdater
      currentVersion : String
[只读] 应用程序的当前版本。
ApplicationUpdater
      delay : Number
定期检查新更新的间隔天数。
ApplicationUpdater
      isFirstRun : Boolean
[只读] 这是否为成功更新之后的第一次运行,如果是,则为 (true),否则为 (false)。
ApplicationUpdater
      isNewerVersionFunction : Function
updater 执行版本比较所应该使用的函数。
ApplicationUpdater
      previousApplicationStorageDirectory : File
[只读] 应用程序存储目录的原有位置(如果更新之后该目录发生过更改)。
ApplicationUpdater
      previousVersion : String
[只读] 应用程序的原有版本。
ApplicationUpdater
      updateDescriptor : XML
[只读] 从更新 URL 下载的更新描述符文件的内容。
ApplicationUpdater
      updateURL : String
更新描述符文件的位置。
ApplicationUpdater
      wasPendingUpdate : Boolean
[只读] 是否有被推迟的更新,即使安装失败,如果有,则为 (true);否则为 false。
ApplicationUpdater
公共方法
 方法由以下参数定义
  
构造函数。
ApplicationUpdater
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
使用 EventDispatcher 对象注册事件侦听器对象,以使侦听器能够接收事件通知。
EventDispatcher
  
    cancelUpdate():void
取消更新过程。
ApplicationUpdater
  
异步下载并解释更新描述符文件。
ApplicationUpdater
  
    checkNow():void
启动更新过程。
ApplicationUpdater
 Inherited
将事件调度到事件流中。
EventDispatcher
  
异步下载更新文件。
ApplicationUpdater
 Inherited
检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。
EventDispatcher
 Inherited
表示对象是否已经定义了指定的属性。
Object
  
    initialize():void
初始化 updater。
ApplicationUpdater
  
使用本地 AIR 文件启动更新过程。
ApplicationUpdater
  
安装更新文件。
ApplicationUpdater
 Inherited
表示 Object 类的实例是否在指定为参数的对象的原型链中。
Object
 Inherited
表示指定的属性是否存在、是否可枚举。
Object
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
从 EventDispatcher 对象中删除侦听器。
EventDispatcher
 Inherited
设置循环操作动态属性的可用性。
Object
 Inherited
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。
Object
 Inherited
返回指定对象的字符串表示形式。
Object
 Inherited
返回指定对象的原始值。
Object
 Inherited
检查是否用此 EventDispatcher 对象或其任何祖代为指定事件类型注册了事件侦听器。
EventDispatcher
事件
 事件 摘要 由以下参数定义
 Inherited[广播事件] Flash Player 或 AIR 应用程序获得操作系统焦点并变为活动状态时将调度此事件。EventDispatcher
  调用 installUpdate() 方法之后,恰好在安装更新之前将调度此事件。ApplicationUpdater
  升级过程开始之前,恰好在 updater 尝试下载更新描述符文件之前将调度此事件。ApplicationUpdater
 Inherited[广播事件] Flash Player 或 AIR 应用程序失去操作系统焦点并变为非活动状态时将调度此事件。EventDispatcher
  更新文件下载完毕时将调度此事件。ApplicationUpdater
  如果在连接或下载更新文件时出错,将调度此事件。ApplicationUpdater
  调用 downloadUpdate() 方法并建立到服务器的连接之后将调度此事件。ApplicationUpdater
  
    error
初始化过程中或更新过程中出错时(如果发生某种意外情况),将调度此事件。ApplicationUpdater
  验证调用 installFromAIRFile() 方法过程中作为 airFile 参数传递的文件时,若出错,将调度此事件。ApplicationUpdater
  updater 成功验证调用 installFromAIRFile() 方法过程中的文件之后将调度此事件。ApplicationUpdater
  
    initialized
初始化完成之后,将调度此事件。ApplicationUpdater
  
    progress
在下载更新文件时进行调度。ApplicationUpdater
  
    updateError
如果尝试下载或分析更新描述符文件时出错,将调度此事件。ApplicationUpdater
  
    updateStatus
updater 成功下载并解释更新描述符文件之后,将调度此事件。ApplicationUpdater
属性详细信息
    

configurationFile

属性
configurationFile:File

语言版本: ActionScript 3.0
运行时版本: AIR 1.5

设置 delayupdateURL 属性值的配置文件所在的位置。如果此属性指向不存在的文件,则调用 initialize() 方法将引发错误。

下面是一个示例配置文件:

 <?xml version="1.0" encoding="utf-8"?> 
         <configuration xmlns="http://ns.adobe.com/air/framework/update/configuration/1.0" >
           <url>app:/server/update.xml</url>
           <delay>1</delay>
        </configuration>

不必加载配置文件,使用 ActionScript 代码即可设置 delayupdateURL 属性。



实现
    public function get configurationFile():File
    public function set configurationFile(value:File):void

相关 API 元素

    

currentState

属性 
currentState:String  [只读]

语言版本: ActionScript 3.0
运行时版本: AIR 1.5

updater 的内部状态。此属性可设置为下列值:

  • "UNINITIALIZED" — updater 尚未初始化。

  • "INITIALIZING" — updater 正在初始化。

  • "READY" — updater 已初始化。

  • "BEFORE_CHECKING" — 尚未检查 updater 中是否有更新描述符文件。

  • "CHECKING" — updater 正在检查是否有更新描述符文件。

  • "AVAILABLE" — 更新描述符文件可用。

  • "DOWNLOADING" — updater 正在下载 AIR 文件。

  • "DOWNLOADED" — updater 已下载 AIR 文件。

  • "INSTALLING" — updater 正在安装 AIR 文件。

  • "PENDING_INSTALLING" — updater 已初始化,但存在未处理的更新。



实现
    public function get currentState():String
    

currentVersion

属性 
currentVersion:String  [只读]

语言版本: ActionScript 3.0
运行时版本: AIR 1.5

应用程序的当前版本。在调用 initialize() 方法的过程中设置此属性。将其设置为应用程序描述符文件中的版本。



实现
    public function get currentVersion():String
    

delay

属性 
delay:Number

语言版本: ActionScript 3.0
运行时版本: AIR 1.5

定期检查新更新的间隔天数。

值为 0(默认值)时表示计时器未处于活动状态,因此不进行任何定期检查。可以通过此属性或通过配置文件设置此值。使用这两种方法设置此值后,将使用以此属性设置的值。

默认值为 0。



实现
    public function get delay():Number
    public function set delay(value:Number):void
    

isFirstRun

属性 
isFirstRun:Boolean  [只读]

语言版本: ActionScript 3.0
运行时版本: AIR 1.5

这是否为成功更新之后的第一次运行,如果是,则为 (true),否则为 (false)。updater 在调用 initialize() 方法的过程中设置此值。如果需要将数据从一个版本迁移到另一个版本,则开发人员应该核实 isFirstRun 已设置为 true



实现
    public function get isFirstRun():Boolean

相关 API 元素

    

isNewerVersionFunction

属性 
isNewerVersionFunction:Function

语言版本: ActionScript 3.0
运行时版本: AIR 1.5

updater 执行版本比较所应该使用的函数。默认情况下,更新框架进行版本比较,以检测远程站点的版本是否比所安装应用程序的版本新。但是,有时默认的比较并不符合开发人员的版本控制方案。设置此属性可提供进行比较的新函数。

默认的比较函数接受类似 x.y.z 的版本,其中 x、y 和 z 可以包含字母和数字。默认的比较函数能够识别一些特殊情况。如果测试函数在版本字符串中找到“alpha”“beta”“rc”,则顺序为 alpha < beta < rc



实现
    public function get isNewerVersionFunction():Function
    public function set isNewerVersionFunction(value:Function):void

示例  ( 如何使用本示例 )
以下代码定义 appUpdate updater 对象的自定义函数 customFn。我们特意将示例函数设计得很简单。自定义函数应根据版本控制方案规则返回一个布尔值。
appUpdate.isNewerVersionFunction = customFn; 

function customFn (currentVersion:String, updateVersion:String):Boolean 
{
    return updateVersion > currentVersion;
}
    

previousApplicationStorageDirectory

属性 
previousApplicationStorageDirectory:File  [只读]

语言版本: ActionScript 3.0
运行时版本: AIR 1.5

应用程序存储目录的原有位置(如果更新之后该目录发生过更改)。进行含证书迁移的升级之后,应用程序存储目录位置将发生更改。如果不进行证书迁移,则用户更新应用程序时,应用程序存储目录不会发生更改。且将此属性设置为 null。在调用 initialize() 方法的过程中设置此属性。

如果开发人员用 ADT 打包 AIR 文件时使用 -migrate 选项,则该开发人员可以用新的证书为 AIR 应用程序的新版本签名。如果 AIR 应用程序的新版本使用新的签名证书,则用户安装新版本时,应用程序的本地存储目录将发生更改。使用此属性将数据从旧的应用程序存储目录转移到新的应用程序存储目录 (File.applicationStorageDirectory)。有关详细信息,请参阅《Adobe AIR 开发人员指南》中“使用命令行工具创建 AIR 应用程序”一章的“为 AIR 文件签名以更改应用程序证书”。



实现
    public function get previousApplicationStorageDirectory():File
    

previousVersion

属性 
previousVersion:String  [只读]

语言版本: ActionScript 3.0
运行时版本: AIR 1.5

应用程序的原有版本。在调用 initialize() 方法的过程中设置此属性。返回应用程序升级之前的原有版本(仅当 isfirstRuntrue 时设置);否则将其设置为 null



实现
    public function get previousVersion():String
    

updateDescriptor

属性 
updateDescriptor:XML  [只读]

语言版本: ActionScript 3.0
运行时版本: AIR 1.5

从更新 URL 下载的更新描述符文件的内容。只有在 updater 对象调度 updateStatus 事件之后,此属性才为非 null。



实现
    public function get updateDescriptor():XML
    

updateURL

属性 
updateURL:String

语言版本: ActionScript 3.0
运行时版本: AIR 1.5

更新描述符文件的位置。可以接受对 URLRequest 路径有效的任何位置。这是 updater 所需的唯一一个必要设置。可以通过此属性或通过配置文件来设置更新 URL。使用这两种方法设置此值后,updater 将使用以此属性设置的值。



实现
    public function get updateURL():String
    public function set updateURL(value:String):void
    

wasPendingUpdate

属性 
wasPendingUpdate:Boolean  [只读]

语言版本: ActionScript 3.0
运行时版本: AIR 1.5

是否有被推迟的更新,即使安装失败,如果有,则为 (true);否则为 false。updater 在调用 initialize() 方法的过程中设置此属性。使用 wasPendingUpdateisFirstRun 属性检查更新是否未能安装(这种情况下 wasPendingUpdate 设置为 true,且 isFirstRun 设置为 false)。



实现
    public function get wasPendingUpdate():Boolean

相关 API 元素

构造函数详细信息
    

ApplicationUpdater

()构造函数
public function ApplicationUpdater()

语言版本: ActionScript 3.0
运行时版本: AIR 1.5

构造函数。

方法详细信息

    cancelUpdate

()方法
public function cancelUpdate():void

语言版本: ActionScript 3.0
运行时版本: AIR 1.5

取消更新过程。调用此方法将取消所有未处理的下载,删除所有不完整的下载文件,以及重新启动定期检查计时器。

除状态机处于“UNINITIALIZED”或“INITIALIZING”状态之外的任何时候都可以取消更新过程。在“UNINITIALIZED”或“INITIALIZING”状态下调用此方法时,它不会执行任何操作。

    checkForUpdate

()方法 
public function checkForUpdate():void

语言版本: ActionScript 3.0
运行时版本: AIR 1.5

异步下载并解释更新描述符文件。调用此方法会将 updater 的状态前移至“CHECKING”。请仅在取消 checkForUpdate 事件后调用此方法。

只有 updater 为“BEFORE_CHECKING”状态时此方法才会执行。


事件
updateStatus:StatusUpdateEvent — updater 已成功下载并解释了更新描述符文件。
 
updateError:StatusUpdateErrorEvent — 尝试下载或分析更新描述符文件时出错。

    checkNow

()方法 
public function checkNow():void

语言版本: ActionScript 3.0
运行时版本: AIR 1.5

启动更新过程。调用此方法不会使定期检查计时器停止;但是,此方法可以检测出更新过程正在运行中,并将跳过当前遍历。

只有当前状态为“READY”时此方法才会执行。

此方法可能导致 updater 对象调度以下事件:


事件
checkForUpdate:UpdateEvent — 恰好在更新过程开始之前调度此事件。

    downloadUpdate

()方法 
public function downloadUpdate():void

语言版本: ActionScript 3.0
运行时版本: AIR 1.5

异步下载更新文件。调用此方法会将状态机前移至“DOWNLOADING”。只有当 StatusUpdateEvent.UPDATE_STATUS 事件的 available 属性为 true 时取消该事件后才需要调用此方法。

只有当前状态为“AVAILABLE”时此方法才会执行。


事件
downloadStart:UpdateEvent — 建立到服务器的连接之后将调度此事件。
 
progress:ProgressEvent — 初始化完成之后,将调度此事件。
 
downloadError:DownloadErrorEvent — 如果在连接或下载更新文件时出错,将调度此事件。HTTP 状态无效(如“404 - 找不到文件”)时也会调度此事件。

    initialize

()方法 
public function initialize():void

语言版本: ActionScript 3.0
运行时版本: AIR 1.5

初始化 updater。调用此方法可执行以下操作:

  1. 它将初始化更新框架,以静默方式同步安装所有未处理的更新。由于此方法可能会重新启动应用程序,因此在应用程序启动过程中应该调用此方法。

  2. 它检查是否有被推迟的更新,如果有将安装该更新。

  3. 如果前一次更新有错误,则它将从存储区域中清除更新文件和版本信息。

  4. 如果定期检查计时器延迟已到期,则它将启动更新过程;否则它将启动定期检查计时器。但是,在使用 AIR Debug Launcher (ADL) 应用程序测试某个应用程序时,尝试更新应用程序会导致 IllegalOperationError 异常。


事件
initialized:UpdateEvent — 初始化完成。
 
error:ErrorEvent — 初始化过程中有错。

    installFromAIRFile

()方法 
public function installFromAIRFile(file:File):void

语言版本: ActionScript 3.0
运行时版本: AIR 1.5

使用本地 AIR 文件启动更新过程。

如果正在运行更新过程,则调用此方法不起作用(如果状态不是 "DOWNLOADED")。

对于在应用程序描述符文件中将 customUpdateUI 元素设置为 true 的应用程序,此函数很有用。

在使用 AIR Debug Launcher (ADL) 应用程序测试某个应用程序时,调用此方法会导致 IllegalOperationError 异常。

参数

file:File — 要安装的本地 AIR 文件。


事件
fileUpdateStatus:StatusFileUpdateEvent — updater 成功验证 AIR 文件之后将调度此事件。
 
updateError:StatusFileUpdateErrorEvent — 如果尝试分析更新描述符文件时出错,将调度此事件。

    installUpdate

()方法 
public function installUpdate():void

语言版本: ActionScript 3.0
运行时版本: AIR 1.5

安装更新文件。调用此方法会将状态机前移至“INSTALLING”,且只有在取消 downLoadComplete 事件后才需要调用此方法。

请在 updater 为“DOWNLOADED”状态时调用此方法。在任何其他状态下调用此方法都不起作用。

在使用 AIR Debug Launcher (ADL) 应用程序测试某个应用程序时,调用此方法会导致 IllegalOperationError 异常。


事件
beforeInstall:UpdateEvent — 恰好在安装更新之前调度此事件。某些情况下,最好在此时阻止更新的安装,这是因为运行时退出应用程序以安装更新时,用户可能会丢失所有当前工作。
事件详细信息
    

beforeInstall

事件
事件对象类型: air.update.events.UpdateEvent
属性 UpdateEvent.type = air.update.events.UpdateEvent.BEFORE_INSTALL

语言版本: ActionScript 3.0
运行时版本: AIR 1.5

调用 installUpdate() 方法之后,恰好在安装更新之前将调度此事件。某些情况下,运行时退出应用程序以安装更新时,用户可能会丢失所有当前工作,这种情况下最好阻止安装更新。

调用此事件的 preventDefault() 方法可将安装推迟到下一次重新启动。如果调用 preventDefault() 方法,则在此应用程序会话过程中不能再启动其他更新过程(通过调用 installUpdate() 方法或通过定期检查)。

ApplicationUpdater 库的默认行为是下载更新描述符文件。可以调用 preventDefault() 方法取消此行为。

UpdateEvent.BEFORE_INSTALL 常量为 beforeInstall 事件定义事件对象的 type 属性的值。

此事件具有以下属性:

属性
bubblesfalse
cancelablefalse;没有要取消的默认行为。
currentTarget当前正在使用某个事件侦听器处理 Event 对象的对象。
targetupdater 对象。
    

checkForUpdate

事件  
事件对象类型: air.update.events.UpdateEvent
属性 UpdateEvent.type = air.update.events.UpdateEvent.CHECK_FOR_UPDATE

语言版本: ActionScript 3.0
运行时版本: AIR 1.5

升级过程开始之前,恰好在 updater 尝试下载更新描述符文件之前将调度此事件。updater 调度此事件的原因可以是直接调用 checkNow() 方法或定期检查计时器到期。

UpdateEvent.CHECK_FOR_UPDATE 常量为 checkForUpdate 事件定义事件对象的 type 属性的值。

此事件具有以下属性:

属性
bubblesfalse
cancelablefalse;没有要取消的默认行为。
currentTarget当前正在使用某个事件侦听器处理 Event 对象的对象。
targetupdater 对象。
    

downloadComplete

事件  
事件对象类型: air.update.events.UpdateEvent
属性 UpdateEvent.type = air.update.events.UpdateEvent.DOWNLOAD_COMPLETE

语言版本: ActionScript 3.0
运行时版本: AIR 1.5

更新文件下载完毕时将调度此事件。

通常使用此事件显示一条消息,询问用户是否要继续安装更新。

ApplicationUpdater 库的默认行为是自动调用 installUpdate() 方法。

UpdateEvent.DOWNLOAD_COMPLETE 常量为 downloadComplete 事件定义事件对象的 type 属性的值。

此事件具有以下属性:

属性
bubblesfalse
cancelablefalse;没有要取消的默认行为。
currentTarget当前正在使用某个事件侦听器处理 Event 对象的对象。
targetupdater 对象。
    

downloadError

事件  
事件对象类型: air.update.events.DownloadErrorEvent
属性 DownloadErrorEvent.type = air.update.events.DownloadErrorEvent.DOWNLOAD_ERROR

语言版本: ActionScript 3.0
运行时版本: AIR 1.5

如果在连接或下载更新文件时出错,将调度此事件。HTTP 状态无效(如“404 - 找不到文件”)时也会调度此事件。

调度此事件时,定期检查计时器将自动重新启动(如果延迟大于 0)。

DownloadErrorEvent.DOWNLOAD_ERROR 常量为 downloadError 事件定义事件对象的 type 属性的值。

DownloadErrorEvent 对象的 errorID 属性是一个整数,用于定义错误信息(请参阅下表)。此外,还具有另一个属性 subErrorID,该属性可能包含更多错误信息。

errorID 错误代码说明
16800验证已下载的更新文件时出错。subErrorID 属性可能包含其他信息。
16801Adobe AIR 文件无效(缺少 application.xml)。
16802Adobe AIR 文件无效(缺少 MIME 类型)。
16803Adobe AIR 文件无效(格式)。
16804Adobe AIR 文件无效(标志无效)。
16805Adobe AIR 文件无效(压缩方式未知)。
16806Adobe AIR 文件无效(文件名无效)。
16807Adobe AIR 文件无效(已损坏)。
16808配置文件不存在。
16809未设置 updateURL 属性。
16810保留。
16811配置文件无效(配置版本未知)。
16812配置文件无效(缺少 URL)。
16813配置文件无效(延迟格式)。
16814配置文件无效(defaultUI 值无效)。
16815更新描述符无效(描述符版本未知)。
16816更新描述符无效(缺少更新版本)。
16817更新描述符无效(说明无效)。
16818向磁盘保存数据时发生 I/O 错误。subErrorID 属性可能会提供更多信息。
16819下载时发生安全错误。subErrorID 属性可能会提供更多信息。
16820HTTP 状态代码无效。subErrorID 属性可能包含无效的状态代码。
16821保留。
16822下载时发生 I/O 错误。subErrorID 属性可能会提供更多信息。
16823向磁盘保存数据时文件尾出错。subErrorID 属性可能会提供更多信息。
16824更新描述符无效。subErrorID 属性可能会提供更多信息。
16825更新文件包含应用程序 ID 不同的应用程序。
16826更新文件不包含应用程序的更新版本。
16827更新文件中包含的版本与更新描述符中的版本不匹配。
16828无法更新应用程序,通常是因为应用程序正在 AIR Debug Launcher (ADL) 中运行。
16829安装时缺少更新文件。
    

downloadStart

事件  
事件对象类型: air.update.events.UpdateEvent
属性 UpdateEvent.type = air.update.events.UpdateEvent.DOWNLOAD_START

语言版本: ActionScript 3.0
运行时版本: AIR 1.5

调用 downloadUpdate() 方法并建立到服务器的连接之后将调度此事件。使用 ApplicationUpdater 库时,可能希望此事件的事件处理函数显示进度栏,从而向用户报告下载进度。

UpdateEvent.DOWNLOAD_START 常量为 downloadStart 事件定义事件对象的 type 属性的值。

此事件具有以下属性:

属性
bubblesfalse
cancelablefalse;没有要取消的默认行为。
currentTarget当前正在使用某个事件侦听器处理 Event 对象的对象。
targetupdater 对象。
    

error

事件  
事件对象类型: flash.events.ErrorEvent
属性 ErrorEvent.type = flash.events.ErrorEvent.ERROR

语言版本: ActionScript 3.0
运行时版本: AIR 1.5

初始化过程中或更新过程中出错时(如果发生某种意外情况),将调度此事件。

定义 error 事件对象的 type 属性值。

此事件具有以下属性:

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

fileUpdateError

事件  
事件对象类型: air.update.events.StatusFileUpdateErrorEvent
属性 StatusFileUpdateErrorEvent.type = air.update.events.StatusFileUpdateErrorEvent.FILE_UPDATE_ERROR

语言版本: ActionScript 3.0
运行时版本: AIR 1.5

验证调用 installFromAIRFile() 方法过程中作为 airFile 参数传递的文件时,若出错,将调度此事件。

StatusUpdateErrorEvent.UPDATE_ERROR 常量为 statusUpdateError 事件定义事件对象的 type 属性的值。
    

fileUpdateStatus

事件  
事件对象类型: air.update.events.StatusFileUpdateEvent
属性 StatusFileUpdateEvent.type = air.update.events.StatusFileUpdateEvent.FILE_UPDATE_STATUS

语言版本: ActionScript 3.0
运行时版本: AIR 1.5

updater 成功验证调用 installFromAIRFile() 方法过程中的文件之后将调度此事件。

StatusUpdateEvent.UPDATE_STATUS 常量为 updateStatus 事件定义事件对象的 type 属性的值。

此事件具有以下属性:

属性
available表示除当前应用程序的版本之外是否还有可用的版本,有则为 true;否则(版本相同)为 false
path调用 installFromAIRFile() 方法的过程中由 airFile 参数指定的更新 File 对象的 nativePath 属性。
version表示新的更新的版本。

    

initialized

事件  
事件对象类型: air.update.events.UpdateEvent
属性 UpdateEvent.type = air.update.events.UpdateEvent.INITIALIZED

语言版本: ActionScript 3.0
运行时版本: AIR 1.5

初始化完成之后,将调度此事件。

UpdateEvent.INITIALIZED 常量为 initialized 事件定义事件对象的 type 属性的值。

此事件具有以下属性:

属性
bubblesfalse
cancelablefalse;没有要取消的默认行为。
currentTarget当前正在使用某个事件侦听器处理 Event 对象的对象。
targetupdater 对象。
    

progress

事件  
事件对象类型: flash.events.ProgressEvent
属性 ProgressEvent.type = flash.events.ProgressEvent.PROGRESS

语言版本: ActionScript 3.0
运行时版本: AIR 1.5

在下载更新文件时进行调度。

定义 progress 事件对象的 type 属性值。

此事件具有以下属性:

属性
bubblesfalse
bytesLoaded在侦听器处理事件时加载的项数或字节数。
bytesTotal如果加载进程成功,最终将加载的项目或字节总数。
cancelablefalse;没有要取消的默认行为。
currentTarget当前正在使用某个事件侦听器处理 Event 对象的对象。
target报告进度的对象。
    

updateError

事件  
事件对象类型: air.update.events.StatusUpdateErrorEvent
属性 StatusUpdateErrorEvent.type = air.update.events.StatusUpdateErrorEvent.UPDATE_ERROR

语言版本: ActionScript 3.0
运行时版本: AIR 1.5

如果尝试下载或分析更新描述符文件时出错,将调度此事件。

updater 调度此事件时,定期检查计时器将自动重新启动(如果延迟设置大于 0)。updater 调度新的 checkForUpdate 事件时,应用程序应该考虑隐藏所有错误对话框。

StatusUpdateErrorEvent.UPDATE_ERROR 常量为 statusUpdateError 事件定义事件对象的 type 属性的值。
    

updateStatus

事件  
事件对象类型: air.update.events.StatusUpdateEvent
属性 StatusUpdateEvent.type = air.update.events.StatusUpdateEvent.UPDATE_STATUS

语言版本: ActionScript 3.0
运行时版本: AIR 1.5

updater 成功下载并解释更新描述符文件之后,将调度此事件。

如果将 StatusUpdateEvent 对象的 available 属性设置为 true,则默认行为是开始下载更新。只有在使用 ApplicationUpdater 类时可以阻止默认行为,而使用 ApplicationUpdatorUI 类时不能。

StatusUpdateEvent.UPDATE_STATUS 常量为 updateStatus 事件定义事件对象的 type 属性的值。

此事件具有以下属性:

属性
available如果更新描述符文件指定的版本与当前应用程序的版本不同,则设置为 true;否则(版本相同)为 false
version表示新的可用版本的字符串。
details为每种受支持的语言定义 details 字符串的数组。如果没有本地化的说明,则将此属性定义为其中第一个元素为空字符串 ("")、第二个元素为 details 字符串的数组。有本地化的说明时,数组中的每个元素都是含有两个元素的数组自身。第一个元素是语言环境代码,第二个元素是说明。例如,以下数组有两种语言(美国英语和法语)的子数组:["en-US", "Hello World"], ["fr", "Bonjour monde"]。列出语言的顺序与更新描述符中的顺序相同。详细信息属性的文本在更新描述符文件中指定。
versionLabel(AIR 2.5+) 来自更新的应用程序描述符的版本标签。应该对用户显示版本标签而不是版本。如果没有指定版本标签,则此属性是空字符串。




[ X ]为什么显示为英语?
《ActionScript 3.0 参考》中的内容以英语显示

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