Adobe AIR–specific functionality



This topic provides an overview of the functionality in Adobe® AIR® that is not available to SWF content running in Adobe® Flash® Player.

AIR-specific classes

The following runtime classes are specific to Adobe AIR. They are not available to SWF content running in the browser:

Class

Package

ApplicationUpdater

air.update

ApplicationUpdaterUI

air.update

BrowserInvokeEvent

flash.events

Clipboard

flash.desktop

ClipboardFormats

flash.desktop

ClipboardTransferMode

flash.desktop

CompressionAlgorithm

flash.utils

DockIcon

flash.desktop

DownloadErrorEvent

air.update.events

DRMAuthenticateEvent

flash.events

DRMErrorEvent

flash.events

DRMStatusEvent

flash.events

EncryptedLocalStore

flash.data

File

flash.filesystem

FileListEvent

flash.events

FileMode

flash.filesystem

FileStream

flash.filesystem

FocusDirection

flash.display

HTMLHistoryItem

flash.html

HTMLHost

flash.html

HTMLLoader

flash.html

HTMLPDFCapability

flash.html

HTMLUncaughtScriptExceptionEvent

flash.events

HTMLWindowCreateOptions

flash.html

Icon

flash.desktop

InteractiveIcon

flash.desktop

InvokeEvent

flash.events

InvokeEventReason

flash.desktop

NativeApplication

flash.desktop

NativeDragActions

flash.desktop

NativeDragEvent

flash.events

NativeDragManager

flash.desktop

NativeDragOptions

flash.desktop

NativeMenu

flash.display

NativeMenuItem

flash.display

NativeWindow

flash.display

NativeWindowBoundsEvent

flash.events

NativeWindowDisplayState

flash.display

NativeWindowDisplayStateEvent

flash.events

NativeWindowInitOptions

flash.display

NativeWindowResize

flash.display

NativeWindowSystemChrome

flash.display

NativeWindowType

flash.display

NotificationType

flash.desktop

OutputProgressEvent

flash.events

RevocationCheckSettings

flash.security

Screen

flash.display

ScreenMouseEvent

flash.events

SignatureStatus

flash.security

SignerTrustSettings

flash.security

SQLCollationType

flash.data

SQLColumnNameStyle

flash.data

SQLColumnSchema

flash.data

SQLConnection

flash.data

SQLError

flash.errors

SQLErrorEvent

flash.events

SQLErrorOperation

flash.errors

SQLEvent

flash.events

SQLIndexSchema

flash.data

SQLResult

flash.data

SQLSchema

flash.data

SQLSchemaResult

flash.data

SQLStatement

flash.data

SQLTableSchema

flash.data

SQLTransactionLockType

flash.data

SQLTriggerSchema

flash.data

SQLUpdateEvent

flash.events

SQLViewSchema

flash.data

StatusFileUpdateErrorEvent

air.update.events

StatusFileUpdateEvent

air.update.events

StatusUpdateErrorEvent

air.update.events

StatusUpdateEvent

air.update.events

SystemTrayIcon

flash.desktop

UpdateEvent

air.update.events

Updater

flash.desktop

URLRequestDefaults

flash.net

XMLSignatureValidator

flash.utils

Also, the flash.security package includes the IURIDereferencer interface, which is AIR-specific.

Runtime classes with AIR-specific functionality

The following classes are available to SWF content running in the browser, but AIR provides additional properties or methods:

Class

Property or Method

Capabilities

languages

Event

DISPLAYING

EXITING

HTML_BOUNDS_CHANGE

HTML_DOM_INITIALIZE

HTML_RENDER

LOCATION_CHANGE

NETWORK_CHANGE

USER_IDLE

USER_PRESENT

FileReference

uploadUnencoded()

HTTPStatusEvent

HTTP_RESPONSE_STATUS

responseURL

responseHeaders

KeyboardEvent

commandKey

controlKey

LoaderContext

allowLoadBytesCodeExecution

LoaderInfo

parentSandboxBridge

childSandboxBridge

NetStream

resetDRMVouchers()

setDRMAuthenticationCredentials()

URLRequest

followRedirects

manageCookies

shouldAuthenticate

shouldCacheResponse

userAgent

userCache

setLoginCredentials()

URLStream

httpResponseStatus event

Stage

nativeWindow

Security

APPLICATION

Most of these new properties and methods are available only to content in the AIR application security sandbox. However, the new members in the URLRequest classes are also available to content running in other sandboxes.

The ByteArray.compress() and ByteArray.uncompress() methods each include a new algorithm parameter, allowing you to choose between deflate and zlib compression. This parameter is available only to content running in AIR.

AIR-specific Flex components

The following Adobe® Flex™ components are available when developing content for Adobe AIR:

Service monitoring framework classes

The air.net package contains classes for network detection. This package is only available to content running in Adobe AIR. It is included in the ServiceMonitor.swc file.

The package includes the following classes: