This class is included in the applicationupdater_ui.swc file, included in the Adobe AIR SDK. The applicationupdater_ui.swc file is in the frameworks/libs/air directory of the AIR SDK.
Adobe® Flex™ Builder™ loads this class automatically when you create a project for Adobe AIR. You should include the SWC file when compiling the application using the Adobe® Flex™ SDK.
Managing updates of applications can be complicated. The AIR update framework provides APIs to assist developers in providing good update capabilities in AIR applications. The functionality in the AIR update framework assists developers in the following:
Periodically checking for updates based on an interval or at the request of the user
Downloading AIR files (updates) from a web source
Alerting the user on the first run of the newly installed version
Confirming that the user wants to check for updates
Displaying information on the new update version to the user
Displaying download progress and error information to the user
The AIR update framework lets you store information about the update version of an AIR application in simple XML configuration files. For most applications, setting up these configuration files and including some basic code provides good update functionality to the end user.
Use the AIRUpdater class if you want to define your own user interface for use with the AIR update framework.
The update process includes a sequence of states. The
When testing an application using the AIR Debug Launcher (ADL) application, attempting to update the application results in an IllegalOperationError exception.
The AIR update framework is only supported in the desktop profile. It is not supported
for extended desktop applications (applications installed with a native installer),
and it is not supported on the mobile profile (iPhone applications written with
ActionScript 3.0). Check the
For details on using the AIR update framework, see the "Updating AIR Applications"
chapter of
For details on using the AIR update framework, see the "Updating AIR Applications"
chapter of
When this event is dispatched the periodic timer is automatically restarted (if the delay is greater than 0).
When the updater dispatches this event, the periodic timer
is automatically restarted (if the delay setting is greater than
0). The application should consider hiding any error dialog boxes
when the updater dispatches a new
The default behavior is to start downloading the update if the
available of the available property of the StatusUpdateEvent object
is set to
Calling this event's
The default behavior for ApplicationUpdater library is to download
the update descriptor file. You can call the
Usually this event is used to display a message asking if the user wants to proceed with the installation of the update.
The default behavior for the the ApplicationUpdater library is
to automatically call the
The update process can be canceled at any time except when the state machine is in "UNINITIALIZED" or "INITIALIZING" state. It does nothing when it is called in one of the "UNINITIALIZED" or "INITIALIZING" states.
This method only executes when the updater is in the "BEFORE_CHECKING" state.
This method only executes if the current state is "READY".
This method can result in the updater object dispatching the following event:
This method only executes if the current state is "AVAILABLE".
It initializes the update framework, silently (and synchronously) installing any pending updates. You should call this method during application startup, since it may restart the application.
It checks if there is a postponed update and installs it.
If something went wrong with a prior update, it clears the update file and version information from the storage area.
If the periodic timer delay has expired, it starts the update process; otherwise it starts the periodic timer. However, when testing an application using the AIR Debug Launcher (ADL) application, attempting to update the application results in a IllegalOperationError exception.
Calling this
method has no effect if an update process is running (if the state
is not
This function is useful
for an application that has the
When testing an application using the AIR Debug Launcher (ADL) application, calling this method results in an IllegalOperationError exception.
Call this method when the updater is in the "DOWNLOADED" state. Calling it in any other state will do nothing.
When testing an application using the AIR Debug Launcher (ADL) application, calling this method results in an IllegalOperationError exception.
Here is a sample configuration file:
Instead of loading a configuration file, you can use
A value of 0 (the default value) indicates that the timer is not active, so no periodic check is done. This can be set either via this property or via the configuration file. When the value is set using both methods, the value set using the property is used.
The default comparision function accepts
versions like x.y.z, where x, y, and z can contain letters
and digits. There are some special conditions that the default comparision function
recognizes. If the test function finds
A developer can sign new version of AIR application with a new certificate
if the developer uses the
This class is included in the applicationupdater_ui.swc file, included in the Adobe AIR SDK. The applicationupdater_ui.swc file is in the frameworks/libs/air directory of the AIR SDK. The version in the frameworks/libs/air directory in the AIR 2 SDK is for Flex 4 development. If you use Flex 3, use the version in the frameworks/libs/air/flex3 subdirectory.
Adobe® Flex™ Builder™ loads this class automatically when you create a project for Adobe AIR. You should include the SWC file when compiling the application using the Adobe® Flex™ SDK.
Managing updates of applications can be complicated. The AIR update framework provides APIs to assist developers in providing good update capabilities in AIR applications. The functionality in the AIR update framework assists developers in the following:
Periodically checking for updates based on an interval or at the request of the user
Downloading AIR files (updates) from a web source
Alerting the user on the first run of the newly installed version
Confirming that the user wants to check for updates
Displaying information on the new update version to the user
Displaying download progress and error information to the user
The AIR update framework lets you store information about the update version of an AIR application in simple XML configuration files. For most applications, setting up these configuration files and including some basic code provides good update functionality to the end user.
The AIRUpdateUI class implements a default user interface that your application can use. It provides the user with basic information and options related to application updates.
The update process goes through a sequence of states:
When testing an application using the AIR Debug Launcher (ADL) application, attempting to update the application results in an IllegalOperationError exception.
The AIR update framework is only supported in the desktop profile. It is not supported
for extended desktop applications (applications installed with a native installer),
and it is not supported on the mobile profile (iPhone applications written with
ActionScript 3.0). Check the
For details on using the AIR update framework, see the "Updating AIR Applications"
chapter of
For details on using the AIR update framework, see the "Updating AIR Applications"
chapter of
When this event is dispatched the periodic timer is automatically restarted (if the delay is greater than 0).
When the updater dispatches this event, the periodic timer
is automatically restarted (if the delay setting is greater than
0). The application should consider hiding any error dialog boxes
when the updater dispatches a new
Calling this event's
This event has the following read-only properties:
The update process can be canceled at any time except when the state machine is in "uninitialized" or "initializing" state. It does nothing when it is called in one of the "uninitialized" or "initializing" states.
This method only executes if the current state is "Ready".
This method can result in the updater object dispatching the following event:
It initializes the update framework, silently (and synchronously) installing any pending updates. You should call this method during application startup, since it may restart the application.
It checks if there is a postponed update and installs it.
If something went wrong with a prior update, it clears the update file and version information from the storage area.
If the periodic timer delay has expired, it starts the update process; otherwise it starts the periodic timer. However, when testing an application using the AIR Debug Launcher (ADL) application, attempting to update the application results in a IllegalOperationError exception.
Calling this
method has no effect if an update process is running (if the state
is not
This function is useful
for an application that has the
When testing an application using the AIR Debug Launcher (ADL) application, calling this method results in an IllegalOperationError exception.
Here is a sample configuration file:
Instead of loading a configuration file, you can use
A value of 0 (the default value) indicates that the timer is not active, so no periodic check is done. The delay can be set either via this property or via the configuration file. When the value is set using both methods, the value set using this property is used.
The default comparision function accepts
versions like x.y.z, where x, y, and z can contain letters
and digits. There are some special conditions that the default comparision function
recognizes. If the test function finds
Flex developers can use the ResourceManager to handle the locale chain.
By default, in an HTML-based application, the languages are sorted between those languages in
the
This JavaScript example uses the AIR HTML localization framework, included in the AIR SDK. It sorts the languages against the list of languages, and then it sets English as the default fallback language:
A developer can sign new version of AIR application with a new certificate
if the developer uses the