Adobe® Flash® Platform 用 ActionScript® 3.0 リファレンスガイド
ホーム  |  パッケージおよびクラスリストの非表示 |  パッケージ  |  クラス  |  新機能  |  索引  |  付録  |  英語で表示される理由
フィルター: AIR 30.0 以前, Flash Player 30.0 以前, Flash Lite 4
Flex 4.6 以前, Flash Pro CS6 以前
フィルターを非表示
air.update 

ApplicationUpdaterUI  - 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 のみのタグ
モーション XML エレメント
Timed Text タグ
使用されなくなったエレメントのリスト
Accessibility Implementation 定数
ActionScript の例の使用方法
法律上の注意
パッケージair.update
クラスpublic class ApplicationUpdaterUI
継承ApplicationUpdaterUI Inheritance EventDispatcher Inheritance Object

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.5

ApplicationUpdaterUI クラスでは、Adobe® AIR® アプリケーションの更新フレームワークの基本機能が定義され、デフォルトのユーザーインターフェイスが提供されています。ApplicationUpdater クラスでは、更新機能のみが定義されており、デフォルトのユーザーインターフェイスは実装されていません。

このクラスは、Adobe AIR SDK に含まれる applicationupdater_ui.swc ファイルに含まれています。applicationupdater_ui.swc ファイルは、AIR SDK の frameworks/libs/air ディレクトリにあります。AIR 2 SDK の frameworks/libs/air ディレクトリのバージョンは Flex 4 開発用です。Flex 3 を使用する場合は、frameworks/libs/air/flex3 サブディレクトリのバージョンを使用してください。

Adobe AIR のプロジェクトを作成すると、Adobe® Flex™ Builder™ によってこのクラスが自動的にロードされます。SWC ファイルは、Adobe® Flex™ SDK を使用してアプリケーションをコンパイルするときに含める必要があります。

アプリケーションの更新の管理は、複雑になる場合があります。AIR 更新フレームワークには、開発者が AIR アプリケーションの優れた更新機能を提供するために役立つ API が用意されています。AIR 更新フレームワークの機能は、以下の開発作業に役立ちます。

  • 時間間隔やユーザーの要求に基づいて、更新を周期的にチェックします。

  • Web ソースから AIR ファイル(更新)をダウンロードします。

  • 新しくインストールされたバージョンの初回実行時にユーザーに警告します。

  • ユーザーによる更新のチェックの必要性を確認します。

  • 新しい更新バージョンの情報をユーザーに表示します。

  • ダウンロードの進行状況とエラー情報をユーザーに表示します。

AIR 更新フレームワークでは、AIR アプリケーションの更新バージョンに関する情報を、単純な XML 設定ファイルに保存できます。ほとんどのアプリケーションで、これらの設定ファイルを設定し一部の基本コードを含めることで、エンドユーザーが使いやすい更新機能になります。

AIRUpdateUI クラスでは、アプリケーションで使用できるデフォルトのユーザーインターフェイスが実装されています。アプリケーション更新に関連する基本情報とオプションをユーザーに提供します。

更新処理は一連の状態を遷移しながら進められます。

状態 説明
UninitializedUpdater は初期化されていません。
InitializingUpdater は初期化中です。
ReadyUpdater は初期化が済んでいます。
Before checkingUpdater はまだ更新記述ファイルを検査していません。
CheckingUpdater は更新記述ファイルを検査しています。
Available更新記述ファイルは使用できます。
DownloadingUpdater は AIR ファイルをダウンロードしています。
DownloadedUpdater は AIR ファイルをダウンロードしました。
InstallingUpdater は AIR ファイルをインストールしています。
Pending installUpdater は初期化を終了し、保留状態の更新があります。

AIR Debug Launcher(ADL)アプリケーションを使用してアプリケーションをテストしている場合は、アプリケーションの更新を試みると IllegalOperationError 例外が発生します。

AIR 更新フレームワークは、デスクトッププロファイルでのみサポートされます。AIR 更新フレームワークは、拡張デスクトップアプリケーション(ネイティブインストーラーによってインストールされるアプリケーション)ではサポートされません。また、モバイルプロファイル(ActionScript 3.0 で記述された iPhone アプリケーション)でもサポートされません。更新フレームワークがサポートされているかどうかを調べるには、実行時に Updater.isSupported プロパティを確認します。

AIR 更新フレームワークの使用について詳しくは、『Adobe AIR アプリケーションの構築』の「AIR アプリケーションのアップデート」の章を参照してください。

関連する API エレメント



パブリックプロパティ
 プロパティ定義元
      configurationFile : File
delay プロパティと updateURL プロパティの値を設定する設定ファイルの場所。
ApplicationUpdaterUI
 Inheritedconstructor : Object
指定されたオブジェクトインスタンスのクラスオブジェクトまたはコンストラクター関数への参照です。
Object
      currentVersion : String
[読み取り専用] アプリケーションの現在のバージョン。
ApplicationUpdaterUI
      delay : Number
新しい更新の周期的チェックの間隔(日数単位)。
ApplicationUpdaterUI
      isCheckForUpdateVisible : Boolean
アップデートの有無をチェック、アップデートがありません、およびアップデートエラーダイアログボックスの表示を有効にします。
ApplicationUpdaterUI
      isDownloadProgressVisible : Boolean
アップデートのダウンロードダイアログボックスの表示を有効にします。
ApplicationUpdaterUI
      isDownloadUpdateVisible : Boolean
アップデートのダウンロードダイアログボックスの表示を有効にします。
ApplicationUpdaterUI
      isFileUpdateVisible : Boolean
ファイル - 利用可能なアップデート、ファイル - 利用可能なアップデートがありません、およびファイル - エラーダイアログボックスの表示を有効にします。
ApplicationUpdaterUI
      isFirstRun : Boolean
[読み取り専用] 正常な更新後の最初の実行の場合は true を返し、それ以外の場合は false を返します。
ApplicationUpdaterUI
      isInstallUpdateVisible : Boolean
アップデートのインストールダイアログボックスの表示を有効にします。
ApplicationUpdaterUI
      isNewerVersionFunction : Function
Updater がバージョン比較を実行するために使用する必要がある関数。
ApplicationUpdaterUI
      isUnexpectedErrorVisible : Boolean
予期しないエラーダイアログボックスの表示を有効にします。
ApplicationUpdaterUI
      isUpdateInProgress : Boolean
[読み取り専用] Boolean プロパティ。更新が実行中の場合は true、それ以外の場合は false です。
ApplicationUpdaterUI
      localeChain : Array
ユーザーインターフェイスが使用するロケールチェーンを定義する配列。
ApplicationUpdaterUI
      previousApplicationStorageDirectory : File
[読み取り専用] アプリケーション記憶領域ディレクトリの前の場所(更新後に変更されている場合)。
ApplicationUpdaterUI
      previousVersion : String
[読み取り専用] アプリケーションの前のバージョン。
ApplicationUpdaterUI
      updateDescriptor : XML
[読み取り専用] 更新 URL からダウンロードされた更新記述ファイルのコンテンツ。
ApplicationUpdaterUI
      updateURL : String
更新記述ファイルの場所。
ApplicationUpdaterUI
      wasPendingUpdate : Boolean
[読み取り専用] インストールが失敗したかどうかに関係なく、延期された更新があった場合は true を返します。それ以外の場合は false を返します。
ApplicationUpdaterUI
パブリックメソッド
 メソッド定義元
  
コンストラクター関数です。
ApplicationUpdaterUI
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
イベントリスナーオブジェクトを EventDispatcher オブジェクトに登録し、リスナーがイベントの通知を受け取るようにします。
EventDispatcher
  
    addResources(lang:String, res:Object):void
指定した言語の新しいリソースバンドルを動的に追加します。
ApplicationUpdaterUI
  
    cancelUpdate():void
更新処理をキャンセルします。
ApplicationUpdaterUI
  
    checkNow():void
更新処理を開始します。
ApplicationUpdaterUI
 Inherited
イベントをイベントフローに送出します。
EventDispatcher
 Inherited
EventDispatcher オブジェクトに、特定のイベントタイプに対して登録されたリスナーがあるかどうかを確認します。
EventDispatcher
 Inherited
オブジェクトに指定されたプロパティが定義されているかどうかを示します。
Object
  
    initialize():void
Updater を初期化します。
ApplicationUpdaterUI
  
ローカル AIR ファイルを使用して Update プロセスを開始します。
ApplicationUpdaterUI
 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() メソッドを呼び出した後に送出されます。ApplicationUpdaterUI
  更新処理が始まる前、Updater が更新記述ファイルをダウンロードする直前に送出されます。ApplicationUpdaterUI
 Inherited[ブロードキャストイベント] Flash Player または AIR アプリケーションがオペレーティングシステムのフォーカスを失って、非アクティブになったときに送出されます。EventDispatcher
  更新ファイルのダウンロードが完了すると送出されます。ApplicationUpdaterUI
  接続中または更新ファイルのダウンロード中にエラーが発生した場合に送出されます。ApplicationUpdaterUI
  downloadUpdate() メソッドが呼び出されてサーバーへの接続が確立された後で送出されます。ApplicationUpdaterUI
  
    error
初期化中または更新処理中にエラーが発生した場合(何か予期しないことが発生した場合)に送出されます。ApplicationUpdaterUI
  airFile パラメーター(installFromAIRFile() メソッドの呼び出し)として渡されたファイルの検証でエラーが発生した場合に送出されます。ApplicationUpdaterUI
  installFromAIRFile() メソッドの呼び出しで Updater がファイルの検証に成功した後に送出されます。ApplicationUpdaterUI
  
    initialized
初期化が完了した後に送出されます。ApplicationUpdaterUI
  
    progress
更新ファイルのダウンロード時に送出されます。ApplicationUpdaterUI
  
    updateError
更新記述ファイルをダウンロードまたは解析しようとしてエラーが発生した場合に送出されます。ApplicationUpdaterUI
  
    updateStatus
Updater が更新記述ファイルを正常にダウンロードして解釈した後で送出されます。ApplicationUpdaterUI
プロパティの詳細
    

configurationFile

プロパティ
configurationFile:File

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.5

delay プロパティと updateURL プロパティの値を設定する設定ファイルの場所。更新処理時にアプリケーションでさまざまな確認のダイアログボックスを表示するかどうかを決定する設定もあります。このプロパティで指定したファイルが存在しない場合は、initialize() メソッドを呼び出すと Error がスローされます。

設定ファイルのサンプルを次に示します。

 <?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>
           <defaultUI>
              <dialog name="checkForUpdate" visible="true" />
               <dialog name="downloadUpdate" visible="false" />
               <dialog name="downloadProgress" visible="true" />
               <dialog name="installUpdate" visible="true" />    
           </defaultUI>
        </configuration>

設定ファイルをロードする代わりに、ActionScript コードを使用して、ApplicationUpdaterUI オブジェクトの delayisCheckForUpdateVisibleisDownloadProgressVisibleisDownloadUpdateVisibleisFileUpdateVisibleisInstallUpdateVisible および updateURL の各プロパティを設定できます。



実装
    public function get configurationFile():File
    public function set configurationFile(value:File):void

関連する API エレメント

    

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

関連する API エレメント

    

isCheckForUpdateVisible

プロパティ 
isCheckForUpdateVisible:Boolean

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.5

アップデートの有無をチェック、アップデートがありません、およびアップデートエラーダイアログボックスの表示を有効にします。true に設定すると、Updater は更新処理の一部としてこれらのダイアログボックスを表示します。更新設定ファイルで設定することもできます。このプロパティを使用して設定した値は、更新設定ファイルでの設定をオーバーライドします。



実装
    public function get isCheckForUpdateVisible():Boolean
    public function set isCheckForUpdateVisible(value:Boolean):void
    

isDownloadProgressVisible

プロパティ 
isDownloadProgressVisible:Boolean

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.5

アップデートのダウンロードダイアログボックスの表示を有効にします。true に設定すると、Updater は更新処理の一部としてこのダイアログボックスを表示します。更新設定ファイルで設定することもできます。このプロパティを使用して設定した値は、更新設定ファイルでの設定をオーバーライドします。



実装
    public function get isDownloadProgressVisible():Boolean
    public function set isDownloadProgressVisible(value:Boolean):void
    

isDownloadUpdateVisible

プロパティ 
isDownloadUpdateVisible:Boolean

ランタイムバージョン: AIR 1.5

アップデートのダウンロードダイアログボックスの表示を有効にします。true に設定すると、Updater は更新処理の一部としてこれらのダイアログボックスを表示します。更新設定ファイルで設定することもできます。このプロパティを使用して設定した値は、更新設定ファイルでの設定をオーバーライドします。



実装
    public function get isDownloadUpdateVisible():Boolean
    public function set isDownloadUpdateVisible(value:Boolean):void
    

isFileUpdateVisible

プロパティ 
isFileUpdateVisible:Boolean

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.5

ファイル - 利用可能なアップデート、ファイル - 利用可能なアップデートがありません、およびファイル - エラーダイアログボックスの表示を有効にします。true に設定すると、Updater は更新処理の一部としてこれらのダイアログボックスを表示します。更新設定ファイルで設定することもできます。このプロパティを使用して設定した値は、更新設定ファイルでの設定をオーバーライドします。



実装
    public function get isFileUpdateVisible():Boolean
    public function set isFileUpdateVisible(value:Boolean):void
    

isFirstRun

プロパティ 
isFirstRun:Boolean  [読み取り専用]

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.5

正常な更新後の最初の実行の場合は true を返し、それ以外の場合は false を返します。Updater は、initialize() メソッドの呼び出し時にこの値を設定します。あるバージョンから別のバージョンにデータを移行する必要がある場合、開発者は isFirstRuntrue に設定されているかどうかを検査する必要があります。



実装
    public function get isFirstRun():Boolean

関連する API エレメント

    

isInstallUpdateVisible

プロパティ 
isInstallUpdateVisible:Boolean

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.5

アップデートのインストールダイアログボックスの表示を有効にします。true に設定すると、Updater は更新処理の一部としてこのダイアログボックスを表示します。更新設定ファイルで設定することもできます。このプロパティを使用して設定した値は、更新設定ファイルでの設定をオーバーライドします。



実装
    public function get isInstallUpdateVisible():Boolean
    public function set isInstallUpdateVisible(value:Boolean):void
    

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

例  ( この例の使用方法 )
以下のコードは、カスタム関数 customFn を定義しています。これは、appUpdate Updater オブジェクト用のカスタム関数です。サンプルの関数は、意図的に簡単なものになっています。バージョン管理方式の規則に基づいて、カスタム関数はブール値を返す必要があります。
appUpdate.isNewerVersionFunction = customFn; 

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

isUnexpectedErrorVisible

プロパティ 
isUnexpectedErrorVisible:Boolean

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.5

予期しないエラーダイアログボックスの表示を有効にします。true に設定すると、Application Updater は更新処理の一部としてこのダイアログボックスを表示します。更新設定ファイルで設定することもできます。このプロパティを使用して設定した値は、更新設定ファイルでの設定をオーバーライドします。



実装
    public function get isUnexpectedErrorVisible():Boolean
    public function set isUnexpectedErrorVisible(value:Boolean):void
    

isUpdateInProgress

プロパティ 
isUpdateInProgress:Boolean  [読み取り専用]

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.5

Boolean プロパティ。更新が実行中の場合は true、それ以外の場合は false です。



実装
    public function get isUpdateInProgress():Boolean
    

localeChain

プロパティ 
localeChain:Array

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.5

ユーザーインターフェイスが使用するロケールチェーンを定義する配列。通常、このプロパティを使用するのは JavaScript(HTML)を開発する場合だけです。

Flex を開発する場合は、ResourceManager を使用してロケールチェーンを処理できます。

HTML ベースのアプリケーションの場合、デフォルトでは、言語は Capabilities.languages 配列内のこれらの言語とユーザーインターフェイスでサポートされる 10 の言語の間でソートされます。一致が見つからない場合は、ユーザーインターフェイスで英語が使用されます。

この JavaScript の例では、AIR SDK に含まれる AIR HTML ローカライズフレームワークを使用しています。言語のリストと対照して言語をソートし、デフォルトのフォールバック言語として英語を設定しています。

 appUpdater.addResources("ro_RO", {titleCheck: "Titlu", msgCheck: "Mesaj", btnCheck: "Buton"});
        appUpdater.addResources("hu", {titleCheck: "Cím", msgCheck: "Üzenet"}); 
        var languages = ["ro", "hu"];
        languages = languages.concat(air.Capabilities.languages);
        var sortedLanguages = air.Localizer.sortLanguagesByPreference(languages, air.Capabilities.language, "en-US");  
        sortedLanguages.push("en-US");
        appUpdater.localeChain = sortedLanguages;



実装
    public function get localeChain():Array
    public function set localeChain(value:Array):void

関連する API エレメント

    

previousApplicationStorageDirectory

プロパティ 
previousApplicationStorageDirectory:File  [読み取り専用]

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.5

アプリケーション記憶領域ディレクトリの前の場所(更新後に変更されている場合)。アプリケーション記憶領域ディレクトリの場所は、証明書の移行を伴うアップグレード後に変更されます。証明書の移行がない場合は、ユーザーがアプリケーションを更新してもアプリケーション記憶領域ディレクトリは変更されません。このプロパティは null に設定されます。このプロパティは、initialize() メソッドの呼び出し時に設定されます。

AIR ファイルを ADT とパッケージ化するときに開発者が -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

関連する API エレメント

    

wasPendingUpdate

プロパティ 
wasPendingUpdate:Boolean  [読み取り専用]

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.5

インストールが失敗したかどうかに関係なく、延期された更新があった場合は true を返します。それ以外の場合は false を返します。Updater は、initialize() メソッドの呼び出し時にこのプロパティを設定します。更新のインストールに失敗したかどうかを確認するには、wasPendingUpdate プロパティおよび isFirstRun プロパティを使用します(失敗した場合は wasPendingUpdatetrue に、isFirstRunfalse に設定されます)。



実装
    public function get wasPendingUpdate():Boolean

関連する API エレメント

コンストラクターの詳細
    

ApplicationUpdaterUI

()コンストラクター
public function ApplicationUpdaterUI()

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.5

コンストラクター関数です。

メソッドの詳細

    addResources

()メソッド
public function addResources(lang:String, res:Object):void

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.5

指定した言語の新しいリソースバンドルを動的に追加します。JavaScript 開発者は、このメソッドを使用して、Application Updater の UI が表示するダイアログボックスに、新しい言語を動的に追加します。Flex を開発する場合は、新しい言語を「ApplicationUpdaterDialogs」リソースバンドルに直接追加できます。

パラメーター

lang:String — 言語コード(ルーマニア語の "ro" など)。
 
res:Object — オブジェクトには、変換のためのキーと値が含まれます。キーは言語プロパティファイルのものです。次の表では使用可能なキー(プロパティ名)の一覧を示します。

キー 英語の値 ダイアログボックス 説明
appWidth 530 すべて ダイアログボックスの幅。
titleWindow Updating: すべて ネイティブウィンドウタイトルバーのアプリケーション名の前に表示されます。
titleCheck Check for updates アップデートの有無をチェック ダイアログボックスのタイトル。
msgCheck Allow the application to check for updates? アップデートの有無をチェック ダイアログボックスのメッセージ。
btnCheck Check for Updates アップデートの有無をチェック 「アップデートの有無をチェック」ボタンのラベル。
btnCancel Cancel 「キャンセル」ボタンのあるすべてのダイアログボックス 「キャンセル」ボタンのラベル。
titleCheckNoUpdates No updates available CheckForUpdates - 利用可能なアップデートがありません ダイアログボックスのタイトル。
msgCheckNoUpdates There are no updates available for the application. アップデートの有無をチェック - 利用可能なアップデートがありません ダイアログボックスのメッセージ。
btnClose Close 「閉じる」ボタンのあるすべてのダイアログボックス 「閉じる」ボタンのラベル。
titleCheckError Update error アップデートの有無をチェック - 接続エラーが発生しました ダイアログボックスのタイトル。
msgCheckError There was an error checking for updates.Error# {0} アップデートの有無をチェック - 接続エラーが発生しました ダイアログボックスのメッセージ。 {0} はエラー ID に置き換えられます。
titleUpdate Update available 利用可能なアップデート ダイアログボックスのタイトル。
msgUpdate An updated version of the application is available for download. 利用可能なアップデート ダイアログボックスのメッセージ。
lblApplication Application: 利用可能なアップデート アプリケーション名の前に表示されるラベル。
lblInstalledVersion Installed Version: 利用可能なアップデート インストールされているバージョンの前に表示されるラベル。
lblAvailableVersion Update Version: 利用可能なアップデート 更新バージョンの前に表示されるラベル。
btnDownload Download now 利用可能なアップデート 「今すぐダウンロード」ボタンのラベル。
btnDownloadLater Download later 利用可能なアップデート 「後でダウンロード」ボタンのラベル。
lnkReleaseNotes Release notes リリースノートへのリンクがあるすべてのダイアログボックス "リリースノート" へのリンクの名前。
titleProgress Download progress... ダウンロードの進捗状況 ダイアログボックスのタイトル。
msgProgress Downloading update ダウンロードの進捗状況 ダイアログボックスのメッセージ。
titleDownloadError Download failed ダウンロードエラー ダイアログボックスのタイトル。
msgDownloadError There was an error downloading the update.Error# {0} ダウンロードエラー ダイアログボックスのメッセージ。 {0} はエラー ID に置き換えられます。
titleInstall Install update アップデートのインストール ダイアログボックスのタイトル。
msgInstall The update for the application is downloaded and ready to be installed. アップデートのインストール ダイアログボックスのメッセージ。
btnInstall Install now アップデートのインストール 「インストール」ボタンのラベル。
btnInstallLater Postpone until restart アップデートのインストール 「再起動時にインストール」ボタンのラベル。
titleFileUpdate Update available ファイル - 利用可能なアップデート ダイアログボックスのタイトル。
msgFileUpdate The file contains an updated version of the application.Install? ファイル - 利用可能なアップデート ダイアログボックスのメッセージ。
lblFile File: ファイル - 利用可能なアップデート ファイル名の前に表示されるラベル。
titleFileNoUpdate No update available ファイル - 利用可能なアップデートがありません ダイアログボックスのタイトル。
msgFileNoUpdate The file doesn't contain a newer version of the application. ファイル - 利用可能なアップデートがありません ダイアログボックスのメッセージ。
titleFileError File error ファイル - エラー ダイアログボックスのタイトル。
msgFileError An error occurred validating the update file.Error# {0} ファイル - エラー ダイアログボックスのメッセージ。 {0} はエラー ID に置き換えられます。
titleUnexpectedError Unexpected error 予期しないエラー ダイアログボックスのタイトル。
msgUnexpectedError An unexpected error occurred.Error# {0} 予期しないエラー ダイアログボックスのメッセージ。 {0} はエラー ID に置き換えられます。

関連する API エレメント

    cancelUpdate

()メソッド 
public function cancelUpdate():void

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.5

更新処理をキャンセルします。このメソッドを呼び出すと、保留状態のダウンロードがキャンセルされ、完全にダウンロードされていないファイルが削除され、周期的なチェックタイマーが再起動されます。

更新処理は、状態マシンが「Unitialized」または「Initializing」状態のときを除き、いつでもキャンセルできます。「Unitialized」または「Initializing」状態のときに更新処理をキャンセルしても、何も行われません。

    checkNow

()メソッド 
public function checkNow():void

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.5

更新処理を開始します。このメソッドを呼び出しても、周期的なタイマーはキャンセルされません。ただし、実行中の更新処理を検出し、現在の反復をスキップします。

このメソッドは、現在の状態が「Ready」の場合にのみ動作します。

このメソッドを呼び出すと、Updater オブジェクトが次のイベントを送出する場合があります。


イベント
checkForUpdate:UpdateEvent — 更新処理が開始される直前に送出されます。

    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 ファイルを使用して Update プロセスを開始します。

更新処理が実行中の場合(状態が "Downloaded" でない場合)、このメソッドを呼び出しても何も行われません。

この機能は、アプリケーション記述ファイルで customUpdateUI 要素が true に設定されているアプリケーションに対して役に立ちます。

AIR Debug Launcher(ADL)アプリケーションを使用してアプリケーションをテストしているときに、このメソッドを呼び出すと、IllegalOperationError 例外が発生します。

パラメーター

file:File — インストールするローカル AIR ファイル。


イベント
fileUpdateStatus:StatusFileUpdateEvent — Updater による AIR ファイルの検証が成功した後で送出されます。
 
updateError:StatusFileUpdateErrorEvent — 更新記述ファイルを解析しようとしてエラーが発生した場合に送出されます。
イベントの詳細
    

beforeInstall

イベント
イベントオブジェクトの型: air.update.events.UpdateEvent
プロパティ UpdateEvent.type = air.update.events.UpdateEvent.BEFORE_INSTALL

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.5

更新をインストールする直前で、installUpdate() メソッドを呼び出した後に送出されます。更新をインストールするためにランタイムがアプリケーションを終了するとユーザーが行っている現在の作業が失われることがあるので、このイベントの時点で更新のインストールを中止すると便利な場合があります。

このイベントの preventDefault() メソッドを呼び出すと、インストールは次の再起動まで延期されます。preventDefault() メソッドを呼び出すと、このアプリケーションのセッションの間は(installUpdate() メソッドの呼び出しまたは周期的なチェックによる)追加の更新処理が開始されません。

UpdateEvent.BEFORE_INSTALL 定数により、イベントオブジェクトの type プロパティ値が beforeInstall イベント用に定義されます。

このイベントには、次のプロパティがあります。

プロパティ
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 定数により、イベントオブジェクトの type プロパティ値が checkForUpdate イベント用に定義されます。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
targetUpdater オブジェクトです。
    

downloadComplete

イベント  
イベントオブジェクトの型: air.update.events.UpdateEvent
プロパティ UpdateEvent.type = air.update.events.UpdateEvent.DOWNLOAD_COMPLETE

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.5

更新ファイルのダウンロードが完了すると送出されます。

UpdateEvent.DOWNLOAD_COMPLETE 定数により、イベントオブジェクトの type プロパティ値が downloadComplete イベント用に定義されます。

このイベントには、次のプロパティがあります。

プロパティ
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 - File not found など)に対しても送出されます。

このイベントが送出されると、周期的なタイマーは自動的に再起動されます(遅延が 0 より大きい場合)。

DownloadErrorEvent.DOWNLOAD_ERROR 定数により、イベントオブジェクトの type プロパティ値が downloadError イベント用に定義されます。

DownloadErrorEvent オブジェクトの errorID プロパティは、エラー情報を定義する整数です(次の表を参照)。追加の subErrorID プロパティに、さらにエラー情報が含まれる場合があります。

errorID のエラーコード説明
16800ダウンロードされた更新ファイルの検証中に発生します。subErrorID プロパティに、追加情報が含まれる場合があります。
16801無効な Adobe AIR ファイル(application.xml がない)。
16802無効な Adobe AIR ファイル(MIME タイプがない)。
16803無効な Adobe AIR ファイル(形式)。
16804無効な Adobe AIR ファイル(無効なフラグ)。
16805無効な Adobe AIR ファイル(不明な圧縮)。
16806無効な Adobe AIR ファイル(無効なファイル名)。
16807無効な Adobe AIR ファイル(破損)。
16808設定ファイルがありません。
16809updateURL プロパティが設定されていません。
16810予約。
16811無効な設定ファイル(不明の設定バージョン)。
16812無効な設定ファイル(URL がない)。
16813無効な設定ファイル(遅延形式)。
16814無効な設定ファイル(無効なデフォルト defaultUI 値)。
16815無効な更新記述子(不明な記述子バージョン)。
16816無効な更新記述子(更新バージョンがない)。
16817無効な更新記述子(無効な説明)。
16818ディスクへのデータ保存中の IO エラー。subErrorID プロパティでさらに情報が提供される場合があります。
16819ダウンロード中のセキュリティエラー。subErrorID プロパティでさらに情報が提供される場合があります。
16820無効な HTTP ステータスコード。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 定数により、イベントオブジェクトの type プロパティ値が downloadStart イベント用に定義されます。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
targetUpdater オブジェクトです。
    

error

イベント  
イベントオブジェクトの型: flash.events.ErrorEvent
プロパティ ErrorEvent.type = flash.events.ErrorEvent.ERROR

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.5

初期化中または更新処理中にエラーが発生した場合(何か予期しないことが発生した場合)に送出されます。

type プロパティ(error イベントオブジェクト)の値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
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

airFile パラメーター(installFromAIRFile() メソッドの呼び出し)として渡されたファイルの検証でエラーが発生した場合に送出されます。

StatusUpdateErrorEvent.UPDATE_ERROR 定数により、イベントオブジェクトの type プロパティ値が statusUpdateError イベント用に定義されます。
    

fileUpdateStatus

イベント  
イベントオブジェクトの型: air.update.events.StatusFileUpdateEvent
プロパティ StatusFileUpdateEvent.type = air.update.events.StatusFileUpdateEvent.FILE_UPDATE_STATUS

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.5

installFromAIRFile() メソッドの呼び出しで Updater がファイルの検証に成功した後に送出されます。

StatusUpdateEvent.UPDATE_STATUS 定数により、イベントオブジェクトの type プロパティ値が updateStatus イベント用に定義されます。

このイベントには、次のプロパティがあります。

プロパティ
available現在のアプリケーションと異なるバージョンを使用できる場合は true、そうでない(同じバージョン)場合は false を示します。
path更新 File オブジェクトの nativePath プロパティ。この File オブジェクトは、airFile パラメーター(installFromAIRFile() メソッドへの呼び出しで使用)で指定されます。
version新しい更新のバージョンを示します。

    

initialized

イベント  
イベントオブジェクトの型: air.update.events.UpdateEvent
プロパティ UpdateEvent.type = air.update.events.UpdateEvent.INITIALIZED

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.5

初期化が完了した後に送出されます。

このイベントには、次の読み取り専用プロパティがあります。

  • isFirstRun(Boolean)正常な更新の後で最初の実行の場合は true、それ以外の場合は false

  • previousVersion(String)アプリケーションのアップグレード前のバージョン(isfirstRuntrue の場合にのみ設定されます)。

  • currentVersion(String)現在インストールされているアプリケーション記述ファイルのバージョン。

UpdateEvent.INITIALIZED 定数により、イベントオブジェクトの type プロパティ値が initialized イベント用に定義されます。

このイベントには、次のプロパティがあります。

プロパティ
bubblesfalse
cancelablefalse は、キャンセルするデフォルトの動作がないことを示します。
currentTargetイベントリスナーで Event オブジェクトをアクティブに処理しているオブジェクトです。
targetUpdater オブジェクトです。
    

progress

イベント  
イベントオブジェクトの型: flash.events.ProgressEvent
プロパティ ProgressEvent.type = flash.events.ProgressEvent.PROGRESS

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.5

更新ファイルのダウンロード時に送出されます。

type プロパティ(progress イベントオブジェクト)の値を定義します。

このイベントには、次のプロパティがあります。

プロパティ
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 定数により、イベントオブジェクトの type プロパティ値が statusUpdateError イベント用に定義されます。
    

updateStatus

イベント  
イベントオブジェクトの型: air.update.events.StatusUpdateEvent
プロパティ StatusUpdateEvent.type = air.update.events.StatusUpdateEvent.UPDATE_STATUS

言語バージョン: ActionScript 3.0
ランタイムバージョン: AIR 1.5

Updater が更新記述ファイルを正常にダウンロードして解釈した後で送出されます。

StatusUpdateEvent.UPDATE_STATUS 定数により、イベントオブジェクトの type プロパティ値が updateStatus イベント用に定義されます。

このイベントには、次のプロパティがあります。

プロパティ
available更新記述ファイルで現在のアプリケーションとは異なるバージョンが指定されている場合は true、それ以外の(バージョンが同じ)場合は false に設定されます。
version使用可能な新しいバージョンを表す文字列。
detailsサポートされる各言語の details 文字列を定義する配列。ローカライズされた説明がない場合は、最初の要素が空の文字列("")で 2 番目の要素が details 文字列の配列として定義されます。ローカライズされた説明がある場合は、配列の各要素が、2 つの要素を持つ配列自体になります。最初の要素はロケールコードで、2 番目の要素は説明です。例えば、["en-US", "Hello World"], ["fr", "Bonjour monde"] という配列は、2 つの言語(米国英語とフランス語)を示す 2 つのサブ配列を含んでいます。言語は、更新記述子と同じ順序でリストされます。details プロパティのテキストは、更新記述子ファイルで指定します。
versionLabel(AIR 2.5 以降)更新のアプリケーション記述子のバージョンラベルです。バージョンではなくバージョンラベルがユーザーに表示されます。バージョンラベルを指定しない場合、このプロパティは空の文字列です。




[ X ]英語で表示される理由
ActionScript 3.0 リファレンスガイドのコンテンツが英語で表示されます。

ActionScript 3.0 リファレンスガイドのすべての部分がすべての言語に翻訳されているわけではありません。言語エレメントが翻訳されていない場合、そのエレメントは英語で表示されます。例えば、ga.controls.HelpBox クラスはどの言語にも訳されていません。このため、リファレンスガイドの日本語バージョンでは、ga.controls.HelpBox クラスは英語で表示されます。