Adobe Flex 3 Help

New functionality in Adobe AIR

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

New runtime classes

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

Class

Package

BrowserInvokeEvent

flash.events

Clipboard

flash.desktop

ClipboardFormats

flash.desktop

ClipboardTransferMode

flash.desktop

CompressionAlgorithm

flash.utils

DockIcon

flash.desktop

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.display

InvokeEvent

flash.events

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

SystemTrayIcon

flash.desktop

Updater

flash.desktop

URLRequestDefaults

flash.net

XMLSignatureValidator

flash.utils

Also, the flash.security package includes the URIDereferencer interface.

Runtime classes with new functionality

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

Class

Property or Method

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

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.

New Flex components

The following Flex components are available when developing content for the AIR runtime:

  • FileEvent
  • FileSystemComboBox
  • FileSystemDataGrid
  • FileSystemEnumerationMode
  • FileSystemHistoryButton
  • FileSystemList
  • FileSystemSizeDisplayMode
  • FileSystemTree
  • HTML
  • Window
  • WindowedApplication

For more information about the AIR Flex components, see Using the Flex AIR components.

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:

  • ServiceMonitor
  • SocketMonitor
  • URLMonitor