Adobe AIR新增功能
这一节给AIR新增的功能做一个概览。
- 新的运行时类
- 运行时类的新功能
- 新的监控伺服类
新的运行时类(runtime classes)
下面都是Adobe AIR新增的运行时类,这些功能不能用于浏览器中运行的SWF:
|
类 |
包 |
|---|---|
|
Clipboard |
flash.desktop |
|
ClipboardFormats |
flash.desktop |
|
CompressionAlgorithm |
flash.utils |
|
ClipboardTransferMode |
flash.desktop |
|
DockIcon |
flash.display |
|
DragActions |
flash.desktop |
|
DragManager |
flash.desktop |
|
DragOptions |
flash.desktop |
|
DRMAuthenticateEvent |
flash.events |
|
DRMStatusEvent |
flash.events |
|
EncryptedLocalStore |
flash.filesystem |
|
File |
flash.filesystem |
|
FileListEvent |
flash.events |
|
FileMode |
flash.filesystem |
|
FileStream |
flash.filesystem |
|
HTMLControl |
flash.html |
|
HTMLHistoryItem |
flash.html |
|
HTMLHost |
flash.html |
|
HTMLPDFCapability |
flash.html |
|
HTMLUncaughtJavaScriptExceptionEvent |
flash.html |
|
HTMLWindowCreateOptions |
flash.html |
|
Icon |
flash.desktop |
|
InteractiveIcon |
flash.display |
|
InvokeEvent |
flash.events |
|
JavaScriptFunction |
flash.html |
|
JavaScriptObject |
flash.html |
|
NativeDragEvent |
flash.events |
|
NativeMenu |
flash.display |
|
NativeMenuItem |
flash.display |
|
NativeWindow |
flash.display |
|
NativeWindowBoundsEvent |
flash.events |
|
NativeWindowDisplayState |
flash.display |
|
NativeWindowDisplayStateEvent |
flash.events |
|
NativeWindowErrorEvent |
flash.events |
|
NativeWindowIcon |
flash.display |
|
NativeWindowInitOptions |
flash.display |
|
NativeWindowResize |
flash.display |
|
NativeWindowSystemChrome |
flash.display |
|
NativeWindowType |
flash.display |
|
NotificationType |
flash.display |
|
OutputProgressEvent |
flash.events |
|
Screen |
flash.display |
|
Shell |
flash.system |
|
SQLCollationType |
flash.data |
|
SQLColumnNameStyle |
flash.data |
|
SQLColumnSchema |
flash.data |
|
SQLConnection |
flash.data |
|
SQLError |
flash.errors |
|
SQLErrorCode |
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.display |
|
Updater |
flash.system |
|
URLRequestDefaults |
flash.net |
|
XMLSignatureValidator |
flash.utils |
|
TransferableTransferMode |
flash.desktop |
|
URLRequestDefaults |
flash.net |
|
Updater |
flash.system |
大多数类只能在AIR程序安全沙箱中可用,不过下面的这些类也可以用在其他沙箱之上:
- Door
- URLRequest.
运行时类新增功能
下面的类能用在浏览器上,但是AIR下提供了额外的属性和方法:
|
类 |
属性和方法 |
|---|---|
|
HTTPStatusEvent |
HTTP_RESPONSE_STATUS responseURL responseHeaders |
|
URLRequest |
followRedirects manageCookies shouldAuthenticate shouldCacheResponse userAgent userCache setLoginCredentials() |
|
URLStream |
httpResponseStatus event |
|
Stage |
nativeWindow |
|
Security |
APPLICATION |
大多数这些属性和方法都在AIR程序安全沙漏中使用,不过URLRequest 类也可以用在其他安全沙箱中。
ByteArray.compress() 和ByteArray.uncompress()方法包含一个新的算法参数,允许你选择压缩或zlib 压缩。
新的Flex组件
下面的Flex组件在AIR程序开发时可用:
FileEvent
FileSystemComboBox
FileSystemDataGrid
FileSystemEnumerationMode
FileSystemHistoryButton
FileSystemList
FileSystemSizeDisplayMode
FileSystemTree
HTML
WindowedApplication
监控伺服类
Air.net包包含一些网络监测类,该包也只能在Adobe AIR中使用,需要引入ServiceMonitor.swc文件。
该包包含下列类:
- ServiceMonitor
- SocketMonitor
- URLMonitor
97

被折叠的 条评论
为什么被折叠?



