Adobe® AIR® includes functionality
that is not available to SWF content running in Adobe® Flash® Player.
ActionScript 3.0 DevelopersThe Adobe
AIR APIs are documented in the following two books:
HTML DevelopersIf you’re building HTML-based
AIR applications, the APIs that are available to you in JavaScript
via the AIRAliases.js file (see Accessing AIR API classes from JavaScript)
are documented in the following two books:
AIR-specific ActionScript 3.0 classesThe following table contains runtime classes are specific
to Adobe AIR. They are not available to SWF content running in Adobe®
Flash® Player in the browser.
Flash Player classes with AIR-specific functionalityThe following classes are available to SWF content running
in the browser, but AIR provides additional properties or methods:
Package
|
Class
|
Property, method, or event
|
Added in AIR version
|
flash.desktop
|
Clipboard
|
supportsFilePromise
|
2.0
|
ClipboardFormats
|
BITMAP_FORMAT
|
1.0
|
FILE_LIST_FORMAT
|
1.0
|
FILE_PROMISE_LIST_FORMAT
|
2.0
|
URL_FORMAT
|
1.0
|
flash.display
|
LoaderInfo
|
childSandboxBridge
|
1.0
|
parentSandboxBridge
|
1.0
|
Stage
|
assignFocus()
|
1.0
|
autoOrients
|
2.0
|
deviceOrientation
|
2.0
|
nativeWindow
|
1.0
|
orientation
|
2.0
|
orientationChange event
|
2.0
|
orientationChanging event
|
2.0
|
setAspectRatio
|
2.0
|
setOrientation
|
2.0
|
softKeyboardRect
|
2.6
|
supportedOrientations
|
2.6
|
supportsOrientationChange
|
2.0
|
NativeWindow
|
owner
|
2.6
|
listOwnedWindows
|
2.6
|
NativeWindowInitOptions
|
owner
|
2.6
|
flash.events
|
Event
|
CLOSING
|
1.0
|
DISPLAYING
|
1.0
|
PREPARING
|
2.6
|
EXITING
|
1.0
|
HTML_BOUNDS_CHANGE
|
1.0
|
HTML_DOM_INITIALIZE
|
1.0
|
HTML_RENDER
|
1.0
|
LOCATION_CHANGE
|
1.0
|
NETWORK_CHANGE
|
1.0
|
STANDARD_ERROR_CLOSE
|
2.0
|
STANDARD_INPUT_CLOSE
|
2.0
|
STANDARD_OUTPUT_CLOSE
|
2.0
|
USER_IDLE
|
1.0
|
USER_PRESENT
|
1.0
|
HTTPStatusEvent
|
HTTP_RESPONSE_STATUS
|
1.0
|
responseHeaders
|
1.0
|
responseURL
|
1.0
|
KeyboardEvent
|
commandKey
|
1.0
|
controlKey
|
1.0
|
flash.net
|
FileReference
|
extension
|
1.0
|
httpResponseStatus event
|
1.0
|
uploadUnencoded()
|
1.0
|
NetStream
|
drmAuthenticate event
|
1.0
|
onDRMContentData event
|
1.5
|
preloadEmbeddedData()
|
1.5
|
resetDRMVouchers()
|
1.0
|
setDRMAuthenticationCredentials()
|
1.0
|
URLRequest
|
authenticate
|
1.0
|
cacheResponse
|
1.0
|
followRedirects
|
1.0
|
idleTimeout
|
2.0
|
manageCookies
|
1.0
|
useCache
|
1.0
|
userAgent
|
1.0
|
URLStream
|
httpResponseStatus event
|
1.0
|
flash.printing
|
PrintJob
|
active
|
2.0
|
copies
|
2.0
|
firstPage
|
2.0
|
isColor
|
2.0
|
jobName
|
2.0
|
lastPage
|
2.0
|
maxPixelsPerInch
|
2.0
|
paperArea
|
2.0
|
printableArea
|
2.0
|
printer
|
2.0
|
printers
|
2.0
|
selectPaperSize()
|
2.0
|
showPageSetupDialog()
|
2.0
|
start2()
|
2.0
|
supportsPageSetupDialog
|
2.0
|
terminate()
|
2.0
|
PrintJobOptions
|
pixelsPerInch
|
2.0
|
printMethod
|
2.0
|
flash.system
|
Capabilities
|
languages
|
1.1
|
LoaderContext
|
allowLoadBytesCodeExecution
|
1.0
|
Security
|
APPLICATION
|
1.0
|
flash.ui
|
KeyLocation
|
D_PAD
|
2.5
|
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 componentsThe
following Adobe® Flex™ MX components are available when developing content
for Adobe AIR:
Additionally, Flex 4 includes the following spark AIR components:
For more information about the AIR Flex components, see Using the Flex AIR components.
|
|
|