適用於 Adobe® Flash® Platform 的 ActionScript® 3.0 參考
首頁  |  隱藏套件和類別清單 |  套件  |  類別  |  新增內容  |  索引  |  附錄  |  為什麼顯示英文?
篩選: AIR 30.0 和更早版本, Flash Player 30.0 和更早版本, Flash Lite 4
Flex 4.6 和更早版本, Flash Pro CS6 和更早版本
隱藏篩選
flash.system 

Capabilities  - AS3

套件x

最上層
adobe.utils
air.desktop
air.net
air.update
air.update.events
coldfusion.air
coldfusion.air.errors
coldfusion.air.events
coldfusion.service
coldfusion.service.events
coldfusion.service.mxml
com.adobe.acm.solutions.authoring.domain.extensions
com.adobe.acm.solutions.ccr.domain.extensions
com.adobe.consulting.pst.vo
com.adobe.dct.component
com.adobe.dct.component.datadictionary
com.adobe.dct.component.datadictionaryElement
com.adobe.dct.component.dataElementsPanel
com.adobe.dct.component.toolbars
com.adobe.dct.event
com.adobe.dct.exp
com.adobe.dct.model
com.adobe.dct.service
com.adobe.dct.service.provider
com.adobe.dct.transfer
com.adobe.dct.util
com.adobe.dct.view
com.adobe.ep.taskmanagement.domain
com.adobe.ep.taskmanagement.event
com.adobe.ep.taskmanagement.filter
com.adobe.ep.taskmanagement.services
com.adobe.ep.taskmanagement.util
com.adobe.ep.ux.attachmentlist.component
com.adobe.ep.ux.attachmentlist.domain
com.adobe.ep.ux.attachmentlist.domain.events
com.adobe.ep.ux.attachmentlist.domain.renderers
com.adobe.ep.ux.attachmentlist.skin
com.adobe.ep.ux.attachmentlist.skin.renderers
com.adobe.ep.ux.content.event
com.adobe.ep.ux.content.factory
com.adobe.ep.ux.content.handlers
com.adobe.ep.ux.content.managers
com.adobe.ep.ux.content.model.asset
com.adobe.ep.ux.content.model.preview
com.adobe.ep.ux.content.model.relation
com.adobe.ep.ux.content.model.search
com.adobe.ep.ux.content.model.toolbar
com.adobe.ep.ux.content.search
com.adobe.ep.ux.content.services
com.adobe.ep.ux.content.services.load
com.adobe.ep.ux.content.services.permissions
com.adobe.ep.ux.content.services.preview
com.adobe.ep.ux.content.services.providers
com.adobe.ep.ux.content.services.query
com.adobe.ep.ux.content.services.relationships
com.adobe.ep.ux.content.services.search.lccontent
com.adobe.ep.ux.content.services.version
com.adobe.ep.ux.content.view
com.adobe.ep.ux.content.view.components.activate
com.adobe.ep.ux.content.view.components.grid
com.adobe.ep.ux.content.view.components.grid.hover
com.adobe.ep.ux.content.view.components.grid.hover.component
com.adobe.ep.ux.content.view.components.grid.renderers
com.adobe.ep.ux.content.view.components.relationships
com.adobe.ep.ux.content.view.components.review
com.adobe.ep.ux.content.view.components.search.renderers
com.adobe.ep.ux.content.view.components.searchpod
com.adobe.ep.ux.content.view.components.toolbar
com.adobe.ep.ux.content.view.components.toolbar.controlRenderers
com.adobe.ep.ux.content.view.components.version
com.adobe.ep.ux.documentsubmit.component
com.adobe.ep.ux.documentsubmit.domain
com.adobe.ep.ux.documentsubmit.skin
com.adobe.ep.ux.taskaction.component
com.adobe.ep.ux.taskaction.domain
com.adobe.ep.ux.taskaction.domain.events
com.adobe.ep.ux.taskaction.skin
com.adobe.ep.ux.taskdetails.component
com.adobe.ep.ux.taskdetails.domain
com.adobe.ep.ux.taskdetails.skin
com.adobe.ep.ux.tasklist.component
com.adobe.ep.ux.tasklist.domain
com.adobe.ep.ux.tasklist.skin
com.adobe.ep.ux.webdocumentviewer.domain
com.adobe.exm.expression
com.adobe.exm.expression.error
com.adobe.exm.expression.event
com.adobe.exm.expression.impl
com.adobe.fiber.runtime.lib
com.adobe.fiber.services
com.adobe.fiber.services.wrapper
com.adobe.fiber.styles
com.adobe.fiber.util
com.adobe.fiber.valueobjects
com.adobe.gravity.binding
com.adobe.gravity.context
com.adobe.gravity.flex.bundleloader
com.adobe.gravity.flex.progress
com.adobe.gravity.flex.serviceloader
com.adobe.gravity.framework
com.adobe.gravity.init
com.adobe.gravity.service.bundleloader
com.adobe.gravity.service.logging
com.adobe.gravity.service.manifest
com.adobe.gravity.service.progress
com.adobe.gravity.tracker
com.adobe.gravity.ui
com.adobe.gravity.utility
com.adobe.gravity.utility.async
com.adobe.gravity.utility.error
com.adobe.gravity.utility.events
com.adobe.gravity.utility.factory
com.adobe.gravity.utility.flex.async
com.adobe.gravity.utility.logging
com.adobe.gravity.utility.message
com.adobe.gravity.utility.sequence
com.adobe.gravity.utility.url
com.adobe.guides.control
com.adobe.guides.domain
com.adobe.guides.i18n
com.adobe.guides.spark.components.skins
com.adobe.guides.spark.components.skins.mx
com.adobe.guides.spark.headers.components
com.adobe.guides.spark.headers.skins
com.adobe.guides.spark.layouts.components
com.adobe.guides.spark.layouts.skins
com.adobe.guides.spark.navigators.components
com.adobe.guides.spark.navigators.renderers
com.adobe.guides.spark.navigators.skins
com.adobe.guides.spark.util
com.adobe.guides.spark.wrappers.components
com.adobe.guides.spark.wrappers.skins
com.adobe.guides.submit
com.adobe.icc.dc.domain
com.adobe.icc.dc.domain.factory
com.adobe.icc.editors.events
com.adobe.icc.editors.handlers
com.adobe.icc.editors.managers
com.adobe.icc.editors.model
com.adobe.icc.editors.model.config
com.adobe.icc.editors.model.el
com.adobe.icc.editors.model.el.operands
com.adobe.icc.editors.model.el.operators
com.adobe.icc.enum
com.adobe.icc.external.dc
com.adobe.icc.obj
com.adobe.icc.services
com.adobe.icc.services.category
com.adobe.icc.services.config
com.adobe.icc.services.download
com.adobe.icc.services.export
com.adobe.icc.services.external
com.adobe.icc.services.formbridge
com.adobe.icc.services.fragmentlayout
com.adobe.icc.services.layout
com.adobe.icc.services.letter
com.adobe.icc.services.locator
com.adobe.icc.services.module
com.adobe.icc.services.render
com.adobe.icc.services.submit
com.adobe.icc.services.user
com.adobe.icc.token
com.adobe.icc.vo
com.adobe.icc.vo.render
com.adobe.icomm.assetplacement.controller
com.adobe.icomm.assetplacement.controller.utils
com.adobe.icomm.assetplacement.data
com.adobe.icomm.assetplacement.model
com.adobe.livecycle.assetmanager.client
com.adobe.livecycle.assetmanager.client.event
com.adobe.livecycle.assetmanager.client.handler
com.adobe.livecycle.assetmanager.client.managers
com.adobe.livecycle.assetmanager.client.model
com.adobe.livecycle.assetmanager.client.model.cms
com.adobe.livecycle.assetmanager.client.service
com.adobe.livecycle.assetmanager.client.service.search
com.adobe.livecycle.assetmanager.client.service.search.cms
com.adobe.livecycle.assetmanager.client.utils
com.adobe.livecycle.content
com.adobe.livecycle.rca.model
com.adobe.livecycle.rca.model.constant
com.adobe.livecycle.rca.model.document
com.adobe.livecycle.rca.model.participant
com.adobe.livecycle.rca.model.reminder
com.adobe.livecycle.rca.model.stage
com.adobe.livecycle.rca.service
com.adobe.livecycle.rca.service.core
com.adobe.livecycle.rca.service.core.delegate
com.adobe.livecycle.rca.service.process
com.adobe.livecycle.rca.service.process.delegate
com.adobe.livecycle.rca.token
com.adobe.livecycle.ria.security.api
com.adobe.livecycle.ria.security.service
com.adobe.mosaic.layouts
com.adobe.mosaic.layouts.dragAndDrop
com.adobe.mosaic.layouts.interfaces
com.adobe.mosaic.mxml
com.adobe.mosaic.om.constants
com.adobe.mosaic.om.events
com.adobe.mosaic.om.impl
com.adobe.mosaic.om.interfaces
com.adobe.mosaic.skinning
com.adobe.mosaic.sparklib.editors
com.adobe.mosaic.sparklib.optionMenu
com.adobe.mosaic.sparklib.scrollableMenu
com.adobe.mosaic.sparklib.scrollableMenu.skins
com.adobe.mosaic.sparklib.tabLayout
com.adobe.mosaic.sparklib.tabLayout.events
com.adobe.mosaic.sparklib.tabLayout.layouts
com.adobe.mosaic.sparklib.tabLayout.skins
com.adobe.mosaic.sparklib.text
com.adobe.mosaic.sparklib.util
com.adobe.solutions.acm.authoring.presentation
com.adobe.solutions.acm.authoring.presentation.actionbar
com.adobe.solutions.acm.authoring.presentation.common
com.adobe.solutions.acm.authoring.presentation.events
com.adobe.solutions.acm.authoring.presentation.fragment
com.adobe.solutions.acm.authoring.presentation.letter
com.adobe.solutions.acm.authoring.presentation.letter.data
com.adobe.solutions.acm.authoring.presentation.preview
com.adobe.solutions.acm.authoring.presentation.rte
com.adobe.solutions.acm.ccr.presentation
com.adobe.solutions.acm.ccr.presentation.contentcapture
com.adobe.solutions.acm.ccr.presentation.contentcapture.events
com.adobe.solutions.acm.ccr.presentation.contentcapture.preview
com.adobe.solutions.acm.ccr.presentation.datacapture
com.adobe.solutions.acm.ccr.presentation.datacapture.renderers
com.adobe.solutions.acm.ccr.presentation.pdf
com.adobe.solutions.exm
com.adobe.solutions.exm.authoring
com.adobe.solutions.exm.authoring.components.controls
com.adobe.solutions.exm.authoring.components.toolbars
com.adobe.solutions.exm.authoring.domain
com.adobe.solutions.exm.authoring.domain.expression
com.adobe.solutions.exm.authoring.domain.impl
com.adobe.solutions.exm.authoring.domain.method
com.adobe.solutions.exm.authoring.domain.variable
com.adobe.solutions.exm.authoring.enum
com.adobe.solutions.exm.authoring.events
com.adobe.solutions.exm.authoring.model
com.adobe.solutions.exm.authoring.renderer
com.adobe.solutions.exm.authoring.view
com.adobe.solutions.exm.expression
com.adobe.solutions.exm.impl
com.adobe.solutions.exm.impl.method
com.adobe.solutions.exm.method
com.adobe.solutions.exm.mock
com.adobe.solutions.exm.mock.method
com.adobe.solutions.exm.runtime
com.adobe.solutions.exm.runtime.impl
com.adobe.solutions.exm.variable
com.adobe.solutions.prm.constant
com.adobe.solutions.prm.domain
com.adobe.solutions.prm.domain.factory
com.adobe.solutions.prm.domain.impl
com.adobe.solutions.prm.domain.manager
com.adobe.solutions.prm.presentation.asset
com.adobe.solutions.prm.presentation.constant
com.adobe.solutions.prm.presentation.document
com.adobe.solutions.prm.presentation.event
com.adobe.solutions.prm.presentation.file
com.adobe.solutions.prm.presentation.project
com.adobe.solutions.prm.presentation.team
com.adobe.solutions.prm.presentation.util
com.adobe.solutions.prm.service
com.adobe.solutions.prm.services.impl
com.adobe.solutions.prm.vo
com.adobe.solutions.rca.constant
com.adobe.solutions.rca.domain
com.adobe.solutions.rca.domain.common
com.adobe.solutions.rca.domain.factory
com.adobe.solutions.rca.domain.impl
com.adobe.solutions.rca.domain.impl.manager
com.adobe.solutions.rca.domain.manager
com.adobe.solutions.rca.presentation
com.adobe.solutions.rca.presentation.comment
com.adobe.solutions.rca.presentation.constant
com.adobe.solutions.rca.presentation.event
com.adobe.solutions.rca.presentation.gantt
com.adobe.solutions.rca.presentation.gantt.ruler
com.adobe.solutions.rca.presentation.template
com.adobe.solutions.rca.presentation.template.audit
com.adobe.solutions.rca.presentation.template.definition
com.adobe.solutions.rca.presentation.template.documents
com.adobe.solutions.rca.presentation.template.stages
com.adobe.solutions.rca.presentation.util
com.adobe.solutions.rca.service
com.adobe.solutions.rca.services.impl
com.adobe.solutions.rca.vo
com.adobe.solutions.rca.vo.um
com.adobe.viewsource
fl.accessibility
fl.containers
fl.controls
fl.controls.dataGridClasses
fl.controls.listClasses
fl.controls.progressBarClasses
fl.core
fl.data
fl.display
fl.events
fl.ik
fl.lang
fl.livepreview
fl.managers
fl.motion
fl.motion.easing
fl.rsl
fl.text
fl.transitions
fl.transitions.easing
fl.video
flash.accessibility
flash.concurrent
flash.crypto
flash.data
flash.desktop
flash.display
flash.display3D
flash.display3D.textures
flash.errors
flash.events
flash.external
flash.filesystem
flash.filters
flash.geom
flash.globalization
flash.html
flash.media
flash.net
flash.net.dns
flash.net.drm
flash.notifications
flash.permissions
flash.printing
flash.profiler
flash.sampler
flash.security
flash.sensors
flash.system
flash.text
flash.text.engine
flash.text.ime
flash.ui
flash.utils
flash.xml
flashx.textLayout
flashx.textLayout.compose
flashx.textLayout.container
flashx.textLayout.conversion
flashx.textLayout.edit
flashx.textLayout.elements
flashx.textLayout.events
flashx.textLayout.factory
flashx.textLayout.formats
flashx.textLayout.operations
flashx.textLayout.utils
flashx.undo
ga.controls
ga.layouts
ga.model
ga.uiComponents
ga.util
ga.views
ga.wrappers
lc.foundation
lc.foundation.domain
lc.foundation.events
lc.foundation.ui
lc.foundation.util
lc.preloader
lc.procmgmt
lc.procmgmt.commands
lc.procmgmt.domain
lc.procmgmt.events
lc.procmgmt.formbridge
lc.procmgmt.impl
lc.procmgmt.ui.attachments
lc.procmgmt.ui.controls
lc.procmgmt.ui.controls.card
lc.procmgmt.ui.controls.renderer
lc.procmgmt.ui.help
lc.procmgmt.ui.layout
lc.procmgmt.ui.presentationmodel
lc.procmgmt.ui.process
lc.procmgmt.ui.search
lc.procmgmt.ui.startpoint
lc.procmgmt.ui.task
lc.procmgmt.ui.task.form
lc.procmgmt.ui.task.form.commands
lc.procmgmt.ui.tracking
mx.accessibility
mx.automation
mx.automation.air
mx.automation.delegates
mx.automation.delegates.advancedDataGrid
mx.automation.delegates.charts
mx.automation.delegates.containers
mx.automation.delegates.controls
mx.automation.delegates.controls.dataGridClasses
mx.automation.delegates.controls.fileSystemClasses
mx.automation.delegates.core
mx.automation.delegates.flashflexkit
mx.automation.events
mx.binding
mx.binding.utils
mx.charts
mx.charts.chartClasses
mx.charts.effects
mx.charts.effects.effectClasses
mx.charts.events
mx.charts.renderers
mx.charts.series
mx.charts.series.items
mx.charts.series.renderData
mx.charts.styles
mx.collections
mx.collections.errors
mx.containers
mx.containers.accordionClasses
mx.containers.dividedBoxClasses
mx.containers.errors
mx.containers.utilityClasses
mx.controls
mx.controls.advancedDataGridClasses
mx.controls.dataGridClasses
mx.controls.listClasses
mx.controls.menuClasses
mx.controls.olapDataGridClasses
mx.controls.scrollClasses
mx.controls.sliderClasses
mx.controls.textClasses
mx.controls.treeClasses
mx.controls.videoClasses
mx.core
mx.core.windowClasses
mx.data
mx.data.crypto
mx.data.errors
mx.data.events
mx.data.messages
mx.data.mxml
mx.data.offline.errors
mx.data.utils
mx.effects
mx.effects.easing
mx.effects.effectClasses
mx.events
mx.filters
mx.flash
mx.formatters
mx.geom
mx.graphics
mx.graphics.codec
mx.graphics.shaderClasses
mx.logging
mx.logging.errors
mx.logging.targets
mx.managers
mx.messaging
mx.messaging.channels
mx.messaging.config
mx.messaging.errors
mx.messaging.events
mx.messaging.management
mx.messaging.messages
mx.modules
mx.netmon
mx.olap
mx.olap.aggregators
mx.preloaders
mx.printing
mx.resources
mx.rpc
mx.rpc.events
mx.rpc.http
mx.rpc.http.mxml
mx.rpc.livecycle
mx.rpc.mxml
mx.rpc.remoting
mx.rpc.remoting.mxml
mx.rpc.soap
mx.rpc.soap.mxml
mx.rpc.wsdl
mx.rpc.xml
mx.skins
mx.skins.halo
mx.skins.spark
mx.skins.wireframe
mx.skins.wireframe.windowChrome
mx.states
mx.styles
mx.utils
mx.validators
org.osmf.containers
org.osmf.display
org.osmf.elements
org.osmf.events
org.osmf.layout
org.osmf.logging
org.osmf.media
org.osmf.metadata
org.osmf.net
org.osmf.net.dvr
org.osmf.net.httpstreaming
org.osmf.net.metrics
org.osmf.net.qos
org.osmf.net.rtmpstreaming
org.osmf.net.rules
org.osmf.traits
org.osmf.utils
spark.accessibility
spark.automation.delegates
spark.automation.delegates.components
spark.automation.delegates.components.gridClasses
spark.automation.delegates.components.mediaClasses
spark.automation.delegates.components.supportClasses
spark.automation.delegates.skins.spark
spark.automation.events
spark.collections
spark.components
spark.components.calendarClasses
spark.components.gridClasses
spark.components.mediaClasses
spark.components.supportClasses
spark.components.windowClasses
spark.core
spark.effects
spark.effects.animation
spark.effects.easing
spark.effects.interpolation
spark.effects.supportClasses
spark.events
spark.filters
spark.formatters
spark.formatters.supportClasses
spark.globalization
spark.globalization.supportClasses
spark.layouts
spark.layouts.supportClasses
spark.managers
spark.modules
spark.preloaders
spark.primitives
spark.primitives.supportClasses
spark.skins
spark.skins.mobile
spark.skins.mobile.supportClasses
spark.skins.spark
spark.skins.spark.mediaClasses.fullScreen
spark.skins.spark.mediaClasses.normal
spark.skins.spark.windowChrome
spark.skins.wireframe
spark.skins.wireframe.mediaClasses
spark.skins.wireframe.mediaClasses.fullScreen
spark.transitions
spark.utils
spark.validators
spark.validators.supportClasses
xd.core.axm.enterprise.view.components
xd.core.axm.enterprise.view.skins
xd.core.axm.view.components
xd.core.axm.view.components.support

語言元素

全域常數
全域函數
運算子
陳述式、關鍵字和指令
特殊類型

附錄

新增內容
編譯器錯誤
編譯器警告
執行階段錯誤
移轉至 ActionScript 3
支援的字元集
僅限 MXML 標籤
移動 XML 元素
Timed Text 標籤
不建議元素清單
AccessibilityImplementation 常數
如何使用 ActionScript 範例
法律聲明
套件flash.system
類別public final class Capabilities
繼承Capabilities Inheritance Object

語言版本: ActionScript 3.0
執行階段版本: Flash Player 9, AIR 1.0, Flash Lite 4

Capabilities 類別能提供屬性,這些屬性會描述裝載應用程式的系統和執行階段。例如,行動電話的螢幕可能是 100 平方像素、黑白;PC 螢幕則可能是 1000 平方像素、彩色。 藉由使用 Capabilities 物件來決定用戶端具有的功能,您可以盡量對許多使用者提供適當的內容。 當您知道裝置的功能時,便能指示伺服器傳送適當的 SWF 檔,或是指示 SWF 檔更改其呈現方式。

但是,某些 Adobe AIR 的功能並未列在 Capabilities 類別的屬性中。它們是其他類別的屬性:

屬性說明
NativeApplication.supportsDockIcon 作業系統是否支援應用程式文件圖示。
NativeApplication.supportsMenu 目前的作業系統是否支援全域應用程式選單列。
NativeApplication.supportsSystemTrayIcon 作業系統是否支援系統匣圖示。
NativeWindow.supportsMenu 作業系統是否支援視窗選單。
NativeWindow.supportsTransparency 作業系統是否支援透明視窗。

不要使用 Capabilities.osCapabilities.manufacturer 判斷作業系統支援的功能。依賴作業系統的功能不是一個好主意,因為如果應用程式沒有考慮到所有潛在的目標作業系統,這可能造成問題。請使用與您所測試功能相對應的屬性。

您可以使用 GETPOST HTTP 方法,來傳送功能資訊 (這項資訊會在 Capabilities.serverString 屬性內儲存為 URL 編碼的字串)。下列範例會說明電腦的伺服器字串,該電腦具有 MP3 支援及 1600 x 1200 像素解析度、執行安裝有輸入法編輯器 (IME) 的 Windows XP,並且沒有多頻道音訊的支援:

A=t&SA=t&SV=t&EV=t&MP3=t&AE=t&VE=t&ACC=f&PR=t&SP=t&
     SB=f&DEB=t&V=WIN%209%2C0%2C0%2C0&M=Adobe%20Windows&
     R=1600x1200&DP=72&COL=color&AR=1.0&OS=Windows%20XP&
     L=en&PT=External&AVD=f&LFD=f&WD=f&IME=t&DD=f&
     DDP=f&DTS=f&DTE=f&DTH=f&DTM=f

下表列出 Capabilities 類別的屬性和對應的伺服器字串,同時列出多頻道音訊類型的伺服器字串。

Capabilities 類別屬性伺服器字串
avHardwareDisable AVD
hasAccessibility ACC
hasAudio A
hasAudioEncoder AE
hasEmbeddedVideo EV
hasIME IME
hasMP3 MP3
hasPrinting PR
hasScreenBroadcast SB
hasScreenPlayback SP
hasStreamingAudio SA
hasStreamingVideo SV
hasTLS TLS
hasVideoEncoder VE
isDebugger DEB
language L
localFileReadDisable LFD
manufacturer M
maxLevelIDC ML
os OS
pixelAspectRatio AR
playerType PT
screenColor COL
screenDPI DP
screenResolutionX R
screenResolutionY R
version V
支援 Dolby Digital 音效 DD
支援 Dolby Digital Plus 音效 DDP
支援 DTS 音效 DTS
支援 DTS Express 音效 DTE
支援 DTS-HD High Resolution Audio DTH
支援 DTS-HD Master Audio DTM

另外有一個 WD 伺服器字串,指定無視窗模式是否停用。因為與網頁瀏覽器或是 mms.cfg 檔案中的使用者設定值不相容,在 Flash Player 中可以停用無視窗模式。沒有相對應的 Capabilities 屬性。

Capabilities 類別的所有屬性都是唯讀的。

檢視範例

更多範例



公用屬性
 屬性定義自
  avHardwareDisable : Boolean
[靜態] [唯讀] 指定是否已經以系統管理方式禁止存取使用者的攝影機和麥克風 (true) 或允許存取使用者的攝影機和麥克風 (false)。
Capabilities
 Inheritedconstructor : Object
類別物件的參照或是特定物件實體的建構函數。
Object
  cpuArchitecture : String
[靜態] [唯讀] 指定目前的 CPU 架構。
Capabilities
  hasAccessibility : Boolean
[靜態] [唯讀] 指定系統是 (true) 否 (false) 支援與輔助功能工具的通訊。
Capabilities
  hasAudio : Boolean
[靜態] [唯讀] 指定系統是否擁有音效功能。
Capabilities
  hasAudioEncoder : Boolean
[靜態] [唯讀] 指定系統是 (true) 否 (false) 可以編碼音效串流,如來自麥克風的音效串流。
Capabilities
  hasEmbeddedVideo : Boolean
[靜態] [唯讀] 指定系統是 (true) 否 (false) 支援內嵌視訊。
Capabilities
  hasIME : Boolean
[靜態] [唯讀] 指定系統是 (true) 否 (false) 安裝輸入法編輯器 (IME)。
Capabilities
  hasMP3 : Boolean
[靜態] [唯讀] 指定系統是 (true) 否 (false) 具有 MP3 解碼器。
Capabilities
  hasPrinting : Boolean
[靜態] [唯讀] 指定系統是 (true) 否 (false) 支援列印。
Capabilities
  hasScreenBroadcast : Boolean
[靜態] [唯讀] 指定系統是 (true) 否 (false) 支援透過 Flash Media Server 執行螢幕廣播應用程式的開發。
Capabilities
  hasScreenPlayback : Boolean
[靜態] [唯讀] 指定系統是 (true) 否 (false) 支援透過 Flash Media Server 執行螢幕廣播應用程式的播放。
Capabilities
  hasStreamingAudio : Boolean
[靜態] [唯讀] 指定系統是 (true) 否 (false) 可以播放串流音效。
Capabilities
  hasStreamingVideo : Boolean
[靜態] [唯讀] 指定系統是 (true) 否 (false) 可以播放串流視效。
Capabilities
  hasTLS : Boolean
[靜態] [唯讀] 指定系統是 (true) 否 (false) 支援透過 NetConnection 之原生 SSL 通訊端。
Capabilities
  hasVideoEncoder : Boolean
[靜態] [唯讀] 指定系統是 (true) 否 (false) 可以編碼視效串流,如來自網路攝影機的視效串流。
Capabilities
  isDebugger : Boolean
[靜態] [唯讀] 指定系統是特殊的除錯版本 (true) 還是正式發行的版本 (false)。
Capabilities
  isEmbeddedInAcrobat : Boolean
[靜態] [唯讀] 指定 Flash 執行階段是 (true) 否 (false) 內嵌於 Acrobat 9.0 或更新版本中開啟的 PDF 檔。
Capabilities
  language : String
[靜態] [唯讀] 會指定執行內容之系統的語言碼。
Capabilities
      languages : Array
[靜態] [唯讀] 字串陣列,其中包含透過作業系統所設定之使用者慣用使用者介面語言的相關資訊。
Capabilities
  localFileReadDisable : Boolean
[靜態] [唯讀] 指定是否已經以系統管理方式禁止讀取使用者的硬碟 (true) 或允許讀取使用者的硬碟 (false)。
Capabilities
  manufacturer : String
[靜態] [唯讀] 指定 Flash Player 或 AIR 執行階段執行版本的製造商,格式為 "Adobe OSName"。
Capabilities
  maxLevelIDC : String
[靜態] [唯讀] 擷取用戶端硬體可支援的最高 H.264 等級 IDC。
Capabilities
  os : String
[靜態] [唯讀] 會指定目前的作業系統。
Capabilities
  pixelAspectRatio : Number
[靜態] [唯讀] 會指定螢幕的像素比例。
Capabilities
  playerType : String
[靜態] [唯讀] 指定執行階段環境的類型。
Capabilities
  screenColor : String
[靜態] [唯讀] 會指定螢幕顏色。
Capabilities
  screenDPI : Number
[靜態] [唯讀] 會指定螢幕解析度的每吋點數 (dpi),以像素為單位。
Capabilities
  screenResolutionX : Number
[靜態] [唯讀] 會指定螢幕的最大水平解析度。
Capabilities
  screenResolutionY : Number
[靜態] [唯讀] 會指定螢幕的最大垂直解析度。
Capabilities
  serverString : String
[靜態] [唯讀] URL 編碼的字串,會指定每個 Capabilities 屬性的值。
Capabilities
  supports32BitProcesses : Boolean
[靜態] [唯讀] 指定系統是否支援執行 32 位元處理程序。
Capabilities
  supports64BitProcesses : Boolean
[靜態] [唯讀] 指定系統是否支援執行 64 位元處理程序。
Capabilities
  touchscreenType : String
[靜態] [唯讀] 指定支援的觸控螢幕類型,若有的話。
Capabilities
  version : String
[靜態] [唯讀] 指定 Flash Player 或 Adobe® AIR® 平台和版本資訊。
Capabilities
公用方法
 方法定義自
  
[靜態] 指定系統是否支援特定類型的多頻道音訊。
Capabilities
 Inherited
指出物件是否有已定義的指定屬性。
Object
 Inherited
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。
Object
 Inherited
指出指定的屬性是否存在,以及是否可列舉。
Object
 Inherited
為迴圈作業設定動態屬性的可用性。
Object
 Inherited
傳回代表此物件的字串,根據地區特定慣例進行格式化。
Object
 Inherited
會傳回指定之物件的字串形式。
Object
 Inherited
會傳回指定之物件的基本值。
Object
屬性詳細資訊

avHardwareDisable

屬性
avHardwareDisable:Boolean  [唯讀]

語言版本: ActionScript 3.0
執行階段版本: Flash Player 9, AIR 1.0, Flash Lite 4

會指定是否已經以系統管理方式禁止 (true) 或允許 (false) 存取使用者的攝影機和麥克風。 伺服器字串為 AVD

對於 Adobe AIR™ 中的內容,這個屬性僅適用於應用程式安全執行程序外的內容。應用程式安全執行程序中的內容一定可以存取使用者的攝影機和麥克風。



實作
    public static function get avHardwareDisable():Boolean

相關 API 元素

cpuArchitecture

屬性 
cpuArchitecture:String  [唯讀]

語言版本: ActionScript 3.0
執行階段版本: Flash Player 10.0.32, AIR 1.5.1

指定目前的 CPU 架構。cpuArchitecture 屬性可以回傳以下字串:"PowerPC"、"x86"、"SPARC" 以及 "ARM"。伺服器字串是 ARCH



實作
    public static function get cpuArchitecture():String

hasAccessibility

屬性 
hasAccessibility:Boolean  [唯讀]

語言版本: ActionScript 3.0
執行階段版本: Flash Player 9, AIR 1.0, Flash Lite 4

指定系統是 (true) 否 (false) 支援與輔助功能工具的通訊。伺服器字串為 ACC



實作
    public static function get hasAccessibility():Boolean

相關 API 元素

hasAudio

屬性 
hasAudio:Boolean  [唯讀]

語言版本: ActionScript 3.0
執行階段版本: Flash Player 9, AIR 1.0, Flash Lite 4

指定系統是否擁有音效功能。這個屬性必定會是 true。 伺服器字串為 A



實作
    public static function get hasAudio():Boolean

hasAudioEncoder

屬性 
hasAudioEncoder:Boolean  [唯讀]

語言版本: ActionScript 3.0
執行階段版本: Flash Player 9, AIR 1.0, Flash Lite 4

指定系統是 (true) 否 (false) 可以編碼音效串流,如來自麥克風的音效串流。伺服器字串為 AE



實作
    public static function get hasAudioEncoder():Boolean

hasEmbeddedVideo

屬性 
hasEmbeddedVideo:Boolean  [唯讀]

語言版本: ActionScript 3.0
執行階段版本: Flash Player 9, AIR 1.0, Flash Lite 4

指定系統是 (true) 否 (false) 支援內嵌視訊。伺服器字串為 EV



實作
    public static function get hasEmbeddedVideo():Boolean

hasIME

屬性 
hasIME:Boolean  [唯讀]

語言版本: ActionScript 3.0
執行階段版本: Flash Player 9, AIR 1.0, Flash Lite 4

指定系統是 (true) 否 (false) 安裝輸入法編輯器 (IME)。伺服器字串為 IME



實作
    public static function get hasIME():Boolean

相關 API 元素

hasMP3

屬性 
hasMP3:Boolean  [唯讀]

語言版本: ActionScript 3.0
執行階段版本: Flash Player 9, AIR 1.0, Flash Lite 4

指定系統是 (true) 否 (false) 具有 MP3 解碼器。伺服器字串為 MP3



實作
    public static function get hasMP3():Boolean

hasPrinting

屬性 
hasPrinting:Boolean  [唯讀]

語言版本: ActionScript 3.0
執行階段版本: Flash Player 9, AIR 1.0, Flash Lite 4

指定系統是 (true) 否 (false) 支援列印。伺服器字串為 PR



實作
    public static function get hasPrinting():Boolean

hasScreenBroadcast

屬性 
hasScreenBroadcast:Boolean  [唯讀]

語言版本: ActionScript 3.0
執行階段版本: Flash Player 9, AIR 1.0, Flash Lite 4

指定系統是 (true) 否 (false) 支援透過 Flash Media Server 執行螢幕廣播應用程式的開發。伺服器字串為 SB



實作
    public static function get hasScreenBroadcast():Boolean

hasScreenPlayback

屬性 
hasScreenPlayback:Boolean  [唯讀]

語言版本: ActionScript 3.0
執行階段版本: Flash Player 9, AIR 1.0, Flash Lite 4

指定系統是 (true) 否 (false) 支援透過 Flash Media Server 執行螢幕廣播應用程式的播放。伺服器字串為 SP



實作
    public static function get hasScreenPlayback():Boolean

hasStreamingAudio

屬性 
hasStreamingAudio:Boolean  [唯讀]

語言版本: ActionScript 3.0
執行階段版本: Flash Player 9, AIR 1.0, Flash Lite 4

指定系統是 (true) 否 (false) 可以播放串流音效。伺服器字串為 SA



實作
    public static function get hasStreamingAudio():Boolean

hasStreamingVideo

屬性 
hasStreamingVideo:Boolean  [唯讀]

語言版本: ActionScript 3.0
執行階段版本: Flash Player 9, AIR 1.0, Flash Lite 4

指定系統是 (true) 否 (false) 可以播放串流視效。伺服器字串為 SV



實作
    public static function get hasStreamingVideo():Boolean

hasTLS

屬性 
hasTLS:Boolean  [唯讀]

語言版本: ActionScript 3.0
執行階段版本: Flash Player 9, AIR 1.0, Flash Lite 4

指定系統是 (true) 否 (false) 支援透過 NetConnection 之原生 SSL 通訊端。伺服器字串為 TLS



實作
    public static function get hasTLS():Boolean

相關 API 元素

hasVideoEncoder

屬性 
hasVideoEncoder:Boolean  [唯讀]

語言版本: ActionScript 3.0
執行階段版本: Flash Player 9, AIR 1.0, Flash Lite 4

指定系統是 (true) 否 (false) 可以編碼視效串流,如來自網路攝影機的視效串流。伺服器字串為 VE



實作
    public static function get hasVideoEncoder():Boolean

isDebugger

屬性 
isDebugger:Boolean  [唯讀]

語言版本: ActionScript 3.0
執行階段版本: Flash Player 9, AIR 1.0, Flash Lite 4

指定系統是特殊的除錯版本 (true) 還是正式發行的版本 (false)。伺服器字串為 DEB。在 Flash Player 除錯版本或 AIR 除錯啟動程式 (ADL) 中執行時,這個屬性會設定為 true



實作
    public static function get isDebugger():Boolean

isEmbeddedInAcrobat

屬性 
isEmbeddedInAcrobat:Boolean  [唯讀]

語言版本: ActionScript 3.0
執行階段版本: Flash Player 9.0.127.0, AIR 1.1, Flash Lite 4

指定 Flash 執行階段是 (true) 否 (false) 內嵌於 Acrobat 9.0 或更新版本中開啟的 PDF 檔。



實作
    public static function get isEmbeddedInAcrobat():Boolean

language

屬性 
language:String  [唯讀]

語言版本: ActionScript 3.0
執行階段版本: Flash Player 9, AIR 1.0, Flash Lite 4

會指定執行內容之系統的語言碼。這個語言由 ISO 639-1 中兩個小寫字母的語言碼所指定。 對中文來說,ISO 3166 裡的另外一個大寫的兩個字母國家碼,可以用來區分簡體中文與繁體中文。 語言碼是以語言的英文名稱為根據。例如,hu 會指定匈牙利文。

在英文系統上,這個屬性只會傳回語言碼 (en),而不是國家碼。 在 Microsoft Windows 系統上,這個屬性會傳回使用者介片 (UI) 語言,也就是所有選單、對話方塊、錯誤訊息及說明檔案所使用的語言。 以下表格列出可能的值:

語言
捷克文cs
丹麥語da
荷蘭語nl
英文zh-tw
芬蘭語fi
法語fr
德文de
匈牙利語hu
義大利語it
日式ja
韓文ko
挪威語nb
其他/未知xu
波蘭文pl
葡萄牙語pt
俄文ru
簡體中文zh-CN
西班牙語es
瑞典語sv
繁體中文zh-TW
土耳其文tr

注意:Capabilities.language 屬性的值只限於此清單上的可能值。由於這個限制,Adobe AIR 應用程式應該使用 Capabilities.languages 陣列中的第一個元素,以判斷系統的主要使用者介面語言。

伺服器字串為 L



實作
    public static function get language():String

相關 API 元素


範例  ( 如何使用本範例 )
下列範例會依使用者作業系統的語言,顯示不同內容。

Capabilities.language 屬性會傳回 ISO 639-1 語言碼 (例如,"en" 代表英文)。 switch 陳述式會檢查語言碼,並將 myTextField 文字欄位的內容設定為該語言特有的問候語。如果是這個範例不支援的語言碼,就傳回預設錯誤字串。

package {
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.text.TextFieldAutoSize;
    import flash.system.Capabilities;

    public class Capabilities_languageExample extends Sprite {

        public function Capabilities_languageExample()  {
            var myTextField:TextField = new TextField();         
            myTextField.x = 10;
            myTextField.y = 10;
            myTextField.background = true;
            myTextField.autoSize = TextFieldAutoSize.LEFT;
            
            var greetingEnglish:String = "Hello World";
            var greetingGerman:String = "Hallo Welt";
            var greetingFrench:String = "Bonjour Monde";
            var greetingSpanish:String = "Hola Mundo";

            var lang:String = Capabilities.language;
                         
            switch (lang) {
                case "en":
                    myTextField.text = greetingEnglish;
                    break;
                case "de":
                    myTextField.text = greetingGerman;
                    break;
                case "fr":
                    myTextField.text = greetingFrench;
                    break;
                case "es":
                    myTextField.text = greetingSpanish;
                    break;
                default:
                    myTextField.text = "Sorry your system's language is not supported at this time.";               
            }
             
            this.addChild(myTextField);
        }
    }
}
    

languages

屬性 
languages:Array  [唯讀]

語言版本: ActionScript 3.0
執行階段版本: AIR 1.1

字串陣列,其中包含透過作業系統所設定之使用者慣用使用者介面語言的相關資訊。字串會包含由 RFC4646 (http://www.ietf.org/rfc/rfc4646.txt) 所定義的語言標籤 (以及指令碼和區域資訊 (如果適用)),並使用破折號做為分隔符號 (例如 "en-US""ja-JP")。陣列中的語言是依照作業系統設定所決定的偏好設定順序來排列。

地區設定字串傳回的區域資訊因作業系統而異。在某作業系統上傳回 "en-us" 時,另一系統可能傳回 "en"

所傳回陣列中的第一個項目通常與 Capabilities.language 屬性具有相同的主要語言 ID。例如,若 Capabilities.languages[0] 設定為 "en-US",則 language 屬性將設定為 "en"。不過,如果 Capabilities.language 屬性是設定為 "xu" (指定未知的語言),這個陣列中的第一個元素就會不同。因此,Capabilities.languages[0] 大致都比 Capabilities.language 更準確。

伺服器字串為 LS



實作
    public static function get languages():Array

localFileReadDisable

屬性 
localFileReadDisable:Boolean  [唯讀]

語言版本: ActionScript 3.0
執行階段版本: Flash Player 9, AIR 1.0, Flash Lite 4

會指定是否已經以系統管理方式禁止 (true) 或允許 (false) 讀取使用者的硬碟。 對於 Adobe AIR 中的內容,這個屬性僅適用於應用程式安全執行程序外的內容 (應用程式安全執行程序中的內容一定可以讀取檔案系統)。如果此屬性為 true,Flash Player 將無法從使用者硬碟中讀取檔案 (包括 Flash Player 所啟動的第一個檔案)。如果此屬性為 true,則應用程式安全執行程序外的 AIR 內容無法從使用者硬碟中讀取檔案。例如,在此屬性設為 true 的情況下,嘗試使用載入方法讀取使用者硬碟上的檔案便會失敗。

如果此屬性設定為 true,讀取執行階段共用元件庫也會遭到封鎖,但是無論此屬性的值為何,都可以讀取本機共享物件。

伺服器字串為 LFD



實作
    public static function get localFileReadDisable():Boolean

相關 API 元素

manufacturer

屬性 
manufacturer:String  [唯讀]

語言版本: ActionScript 3.0
執行階段版本: Flash Player 9, AIR 1.0, Flash Lite 4

指定 Flash Player 執行版本或 AIR 執行階段的製造商,格式為 "Adobe OSName"OSName 的值可能是 "Windows""Macintosh""Linux" 或其他作業系統名稱。伺服器字串為 M

如果有更具體的功能屬性存在,不要使用 Capabilities.manufacturer 來判斷作業系統支援的功能。依賴作業系統的功能不是一個好主意,因為如果應用程式沒有考慮到所有潛在的目標作業系統,這可能造成問題。請使用與您所測試功能相對應的屬性。如需詳細資訊,請參閱 Capabilities 類別的說明。



實作
    public static function get manufacturer():String

maxLevelIDC

屬性 
maxLevelIDC:String  [唯讀]

語言版本: ActionScript 3.0
執行階段版本: Flash Player 10, AIR 1.5, Flash Lite 4

擷取用戶端硬體可支援的最高 H.264 等級 IDC。於這個層級執行的媒體保證一定可以執行,但是以最高層級執行的媒體未必會以最高品質執行。這個屬性對於嘗試將用戶端功能設為目標的伺服器很有用。伺服器可以使用這個屬性決定傳送給用戶端的視訊等級。

伺服器字串為 ML



實作
    public static function get maxLevelIDC():String

os

屬性 
os:String  [唯讀]

語言版本: ActionScript 3.0
執行階段版本: Flash Player 9, AIR 1.0, Flash Lite 4

會指定目前的作業系統。 os 屬性可以傳回下列字串:

作業系統
Windows 10"Windows 10"
Windows 8"Windows 8"
Windows 7"Windows 7"
Windows Vista"Windows Vista"
Windows Server 2012"Windows Server 2012"
Windows Server 2008 R2"Windows Server 2008 R2"
Windows Server 2008"Windows Server 2008"
Windows Home Server"Windows Home Server"
Windows Server 2003 R2"Windows Server 2003 R2"
Windows Server 2003"Windows Server 2003"
Windows XP 64"Windows Server XP 64"
Windows XP"Windows XP"
Windows 98"Windows 98"
Windows 95"Windows 95"
Windows NT"Windows NT"
Windows 2000"Windows 2000"
Windows ME"Windows ME"
Windows CE"Windows CE"
Windows SmartPhone"Windows SmartPhone"
Windows PocketPC"Windows PocketPC"
Windows CEPC"Windows CEPC"
Windows Mobile"Windows Mobile"
Mac OS"Mac OS X.Y.Z" (其中 X.Y.Z 是版本號碼,例如:"Mac OS 10.5.2")
Linux"Linux" (Flash Player 附加 Linux 版本,例如 "Linux 2.6.15-1.2054_FC5smp")
iPhone OS 4.1"iPhone3,1"

伺服器字串為 OS

如果有更具體的功能屬性存在,不要使用 Capabilities.os 來判斷作業系統支援的功能。依賴作業系統的功能不是一個好主意,因為如果應用程式沒有考慮到所有潛在的目標作業系統,這可能造成問題。請使用與您所測試功能相對應的屬性。如需詳細資訊,請參閱 Capabilities 類別的說明。



實作
    public static function get os():String

pixelAspectRatio

屬性 
pixelAspectRatio:Number  [唯讀]

語言版本: ActionScript 3.0
執行階段版本: Flash Player 9, AIR 1.0, Flash Lite 4

會指定螢幕的像素比例。 伺服器字串為 AR



實作
    public static function get pixelAspectRatio():Number

playerType

屬性 
playerType:String  [唯讀]

語言版本: ActionScript 3.0
執行階段版本: Flash Player 9, AIR 1.0, Flash Lite 4

指定執行階段環境的類型。這個屬性可以是下列任何值:

  • "ActiveX" 代表 Microsoft Internet Explorer 所使用的 Flash Player ActiveX 控制項
  • "Desktop" 代表 Adobe AIR 執行階段 (HTML 頁面所載入的 SWF 內容除外,此內容的 Capabilities.playerType 設定為 "PlugIn")
  • "External" 代表外部 Flash Player 或是在測試模式中
  • "PlugIn" 代表 Flash Player 瀏覽器外掛程式 (並代表 AIR 應用程式中 HTML 頁面所載入的 SWF 內容)
  • "StandAlone" 代表獨立的 Flash Player

伺服器字串為 PT



實作
    public static function get playerType():String

screenColor

屬性 
screenColor:String  [唯讀]

語言版本: ActionScript 3.0
執行階段版本: Flash Player 9, AIR 1.0, Flash Lite 4

會指定螢幕顏色。 此屬性可以具有 "color""gray" (使用灰階) 或 "bw" (使用黑白) 的值。伺服器字串為 COL



實作
    public static function get screenColor():String

screenDPI

屬性 
screenDPI:Number  [唯讀]

語言版本: ActionScript 3.0
執行階段版本: Flash Player 9, AIR 1.0, Flash Lite 4

會指定螢幕解析度的每吋點數 (dpi),以像素為單位。 伺服器字串為 DP



實作
    public static function get screenDPI():Number

screenResolutionX

屬性 
screenResolutionX:Number  [唯讀]

語言版本: ActionScript 3.0
執行階段版本: Flash Player 9, AIR 1.0, Flash Lite 4

會指定螢幕的最大水平解析度。 伺服器字串為 R (它會傳回螢幕的寬度和高度)。這個屬性不會隨著使用者的螢幕解析度而更新,只是指出 Flash Player 或 Adobe AIR 應用程式啟動時的解析度。此外,此值只指定主要螢幕。



實作
    public static function get screenResolutionX():Number

screenResolutionY

屬性 
screenResolutionY:Number  [唯讀]

語言版本: ActionScript 3.0
執行階段版本: Flash Player 9, AIR 1.0, Flash Lite 4

會指定螢幕的最大垂直解析度。 伺服器字串為 R (它會傳回螢幕的寬度和高度)。這個屬性不會隨著使用者的螢幕解析度而更新,只是指出 Flash Player 或 Adobe AIR 應用程式啟動時的解析度。此外,此值只指定主要螢幕。



實作
    public static function get screenResolutionY():Number

範例  ( 如何使用本範例 )
下列範例是一個簡單的測試,指示目前螢幕解析度與作業系統版本。測試此範例時,請按一下文字欄位以查看屬性值:
import flash.events.*;
import flash.display.*;
import flash.system.Capabilities;
import flash.text.TextField;

var screenInfoTxt:TextField = new TextField();
screenInfoTxt.x = 30;
screenInfoTxt.y = 50;
screenInfoTxt.width = 300;
screenInfoTxt.height = 100;
screenInfoTxt.border = true;

addChild(screenInfoTxt);

addEventListener(MouseEvent.CLICK, getScreenNVersion);

function getScreenNVersion(e:MouseEvent):void{
    screenInfoTxt.text= "flash.system.Capabilities.screenResolutionX is : " + String(flash.system.Capabilities.screenResolutionX) + "\n" +
    "flash.system.Capabilities.screenResolutionY is : " + String(flash.system.Capabilities.screenResolutionY) + "\n" +
    "flash.system.Capabilities.version is : " + flash.system.Capabilities.version;
}

serverString

屬性 
serverString:String  [唯讀]

語言版本: ActionScript 3.0
執行階段版本: Flash Player 9, AIR 1.0, Flash Lite 4

URL 編碼的字串,會指定每個 Capabilities 屬性的值。

下列範例顯示 URL 編碼字串:

A=t&SA=t&SV=t&EV=t&MP3=t&AE=t&VE=t&ACC=f&PR=t&SP=t&
	 SB=f&DEB=t&V=WIN%208%2C5%2C0%2C208&M=Adobe%20Windows&
	 R=1600x1200&DP=72&COL=color&AR=1.0&OS=Windows%20XP&
	 L=en&PT=External&AVD=f&LFD=f&WD=f



實作
    public static function get serverString():String

supports32BitProcesses

屬性 
supports32BitProcesses:Boolean  [唯讀]

語言版本: ActionScript 3.0
執行階段版本: Flash Player 10.0.32, AIR 1.5.2

指定系統是否支援執行 32 位元處理程序。伺服器字串是 PR32



實作
    public static function get supports32BitProcesses():Boolean

supports64BitProcesses

屬性 
supports64BitProcesses:Boolean  [唯讀]

語言版本: ActionScript 3.0
執行階段版本: Flash Player 10.0.32, AIR 1.5.2

指定系統是否支援執行 64 位元處理程序。伺服器字串是 PR64



實作
    public static function get supports64BitProcesses():Boolean

touchscreenType

屬性 
touchscreenType:String  [唯讀]

語言版本: ActionScript 3.0
執行階段版本: Flash Player 10.1, AIR 2

指定支援的觸控螢幕類型,若有的話。值是定義在 flash.system.TouchscreenType 類別中。



實作
    public static function get touchscreenType():String

相關 API 元素


範例  ( 如何使用本範例 )
下列範例是一個簡單的測試,指示目前觸控螢幕類型。測試此範例時,請按一下文字欄位以查看屬性值:
import flash.events.*;
import flash.display.*;
import flash.system.Capabilities;
import flash.text.TextField;

var capabilitiesTouchScreenTypeTxt:TextField = new TextField();
capabilitiesTouchScreenTypeTxt.width = 300;
capabilitiesTouchScreenTypeTxt.border = true;

addChild(capabilitiesTouchScreenTypeTxt);

addEventListener(MouseEvent.CLICK, getScreenKeyboardType);

function getScreenKeyboardType(e:MouseEvent):void{
    capabilitiesTouchScreenTypeTxt.text= "flash.system.Capabilities.touchscreenType is : " + flash.system.Capabilities.touchscreenType;
}

version

屬性 
version:String  [唯讀]

語言版本: ActionScript 3.0
執行階段版本: Flash Player 9, AIR 1.0, Flash Lite 4

指定 Flash Player 或 Adobe® AIR 平台和版本資訊。版本號碼的格式為:platform majorVersion, minorVersion, buildNumber, internalBuildNumber。 platform 可能的值為 "WIN""MAC""LNX""AND"。以下是一些版本資訊的範例:

	 WIN 9,0,0,0  // Flash Player 9 for Windows
	 MAC 7,0,25,0   // Flash Player 7 for Macintosh
	 LNX 9,0,115,0  // Flash Player 9 for Linux
	 AND 10,2,150,0 // Flash Player 10 for Android
	 

如果有更具體的功能屬性存在,不要使用 Capabilities.version 來判斷作業系統支援的功能。依賴作業系統的功能不是一個好主意,因為如果應用程式沒有考慮到所有潛在的目標作業系統,這可能造成問題。請使用與您所測試功能相對應的屬性。如需詳細資訊,請參閱 Capabilities 類別的說明。

伺服器字串為 V



實作
    public static function get version():String

範例  ( 如何使用本範例 )
下列範例是一個簡單的測試,指示目前螢幕解析度與作業系統版本。測試此範例時,請按一下文字欄位以查看屬性值:
import flash.events.*;
import flash.display.*;
import flash.system.Capabilities;
import flash.text.TextField;

var screenInfoTxt:TextField = new TextField();
screenInfoTxt.x = 30;
screenInfoTxt.y = 50;
screenInfoTxt.width = 300;
screenInfoTxt.height = 100;
screenInfoTxt.border = true;

addChild(screenInfoTxt);

addEventListener(MouseEvent.CLICK, getScreenNVersion);

function getScreenNVersion(e:MouseEvent):void{
    screenInfoTxt.text= "flash.system.Capabilities.screenResolutionX is : " + String(flash.system.Capabilities.screenResolutionX) + "\n" +
    "flash.system.Capabilities.screenResolutionY is : " + String(flash.system.Capabilities.screenResolutionY) + "\n" +
    "flash.system.Capabilities.version is : " + flash.system.Capabilities.version;
}
方法詳細資訊

hasMultiChannelAudio

()方法
public static function hasMultiChannelAudio(type:String):Boolean

語言版本: ActionScript 3.0
執行階段版本: Flash Player 11, AIR 3

指定系統是否支援特定類型的多頻道音訊。類別 flash.media.AudioDecoder 會列舉可能的類型。

AIR 描述檔支援:只有 AIR for TV 裝置支援多頻道音訊。在所有其他裝置上,這個方法永遠會傳回 false。如需有關跨多個描述檔之 API 支援的詳細資訊,請參閱 AIR 描述檔支援

注意:使用其中一個 DTS 音效轉碼器時,會出現 hasMultiChannelAudio() 傳回 true 但無法播放 DTS 音效的情形。例如,請考慮具有 S/PDIF 輸出的 Blu-ray 播放程式連接到舊版擴音器。舊版擴音器不支援 DTS,但是 S/PDIF 沒有通訊協定可通知 Blu-ray 播放程式。如果 Blu-ray 播放程式傳送 DTS 串流到舊版擴音器,使用者不會聽到任何聲音。因此,使用 DTS 時,最好的方法就是提供使用者介面,讓使用者可以指示是否播放出任何聲音。然後,您的應用程式就能回復至不同的轉碼器。

下表顯示每個多頻道音訊類型的伺服器字串:

多頻道音訊類型伺服器字串
AudioDecoder.DOLBY_DIGITALDD
AudioDecoder.DOLBY_DIGITAL_PLUSDDP
AudioDecoder.DTSDTS
AudioDecoder.DTS_EXPRESSDTE
AudioDecoder.DTS_HD_HIGH_RESOLUTION_AUDIODTH
AudioDecoder.DTS_HD_MASTER_AUDIODTM

參數

type:String — 表示多頻道音訊類型的 String 值。有效值為 flash.media.AudioDecoder 中定義的常數。

傳回值
Boolean — 如果系統支援 type 參數中傳遞的多頻道音訊類型,則 Boolean 值為 true。否則,傳回值為 false

相關 API 元素


範例  ( 如何使用本範例 )
下列程式碼會追蹤呼叫 hasMultiChannelAudio() 的傳回值。傳回值指出系統是否支援 Dolby Digital 多頻道音訊。
    trace(Capabilities.hasMultiChannelAudio(flash.media.AudioDecoder.DOLBY_DIGITAL);
    
CapabilitiesExample.as

以下範例會輸出在 flash.system.Capabilities 物件中找到的值。首先,將值輸出到文字欄位。然後,使用數個呼叫 trace() 來輸出值。
package {
    import flash.display.Sprite;
    import flash.system.Capabilities;
    import flash.text.TextField;
    import flash.text.TextFieldAutoSize;

    public class CapabilitiesExample extends Sprite {
        
        public function CapabilitiesExample() {
            showCapabilities();
        }
        
        private function showCapabilities():void {
            var tf:TextField = new TextField();
            tf.height = 600;
            tf.width = 400;
            tf.autoSize = TextFieldAutoSize.LEFT;
            tf.wordWrap = true;
            
            tf.text = "avHardwareDisable: " + Capabilities.avHardwareDisable +
                
                "\nhasAccessibility: " + Capabilities.hasAccessibility +
                "\nhasAudio: " + Capabilities.hasAudio +
                "\nhasAudioEncoder: " + Capabilities.hasAudioEncoder +
                "\nhasEmbeddedVideo: " + Capabilities.hasEmbeddedVideo +
                "\nhasIME: " + Capabilities.hasIME +
                "\nhasMP3: " + Capabilities.hasMP3 +
                "\nhasPrinting: " + Capabilities.hasPrinting +
                "\nhasScreenBroadcast: " + Capabilities.hasScreenBroadcast +
                "\nhasScreenPlayback: " + Capabilities.hasScreenPlayback +
                "\nhasStreamingAudio: " + Capabilities.hasStreamingAudio +
                "\nhasStreamingVideo: " + Capabilities.hasStreamingVideo +
                "\nhasTLS: " + Capabilities.hasTLS +
                "\nhasVideoEncoder: " + Capabilities.hasVideoEncoder +
                "\nisDebugger: " + Capabilities.isDebugger +
                "\nisEmbeddedInAcrobat: " + Capabilities.isEmbeddedInAcrobat +
                "\nlanguage: " + Capabilities.language +
                "\nlocalFileReadDisable: " + Capabilities.localFileReadDisable +
                "\nmanufacturer: " + Capabilities.manufacturer +
                "\nmaxLevelIDC: " + Capabilities.maxLevelIDC +
                "\nos: " + Capabilities.os +
                "\npixelAspectRatio: " + Capabilities.pixelAspectRatio +
                "\nplayerType: " + Capabilities.playerType +
                "\nscreenColor: " + Capabilities.screenColor +
                "\nscreenDPI: " + Capabilities.screenDPI +
                "\nscreenResolutionX: " + Capabilities.screenResolutionX +
                "\nscreenResolutionY: " + Capabilities.screenResolutionY +
                "\nserverString: " + Capabilities.serverString +
                "\ntouchscreenType: " + Capabilities.touchscreenType +
                
                // The following capabilities are supported only when publishing for AIR.
                // If you are publishing for AIR, uncomment the following lines.
                //"\nlanguages: " + Capabilities.languages +
                //"\ncpuArchitecture: " + Capabilities.cpuArchitecture +
                //"\nsupports32BitProcesses: " + Capabilities.supports32BitProcesses +
                //"\nsupports64BitProcesses: " + Capabilities.supports64BitProcesses +    
                                
                "\nversion: " + Capabilities.version;
                
            addChild(tf);   
                
            trace("avHardwareDisable: " + Capabilities.avHardwareDisable);
            trace("hasAccessibility: " + Capabilities.hasAccessibility);
            trace("hasAudio: " + Capabilities.hasAudio);
            trace("hasAudioEncoder: " + Capabilities.hasAudioEncoder);
            trace("hasEmbeddedVideo: " + Capabilities.hasEmbeddedVideo);
            trace("hasIME: " + Capabilities.hasIME);
            trace("hasMP3: " + Capabilities.hasMP3);
            trace("hasPrinting: " + Capabilities.hasPrinting);
            trace("hasScreenBroadcast: " + Capabilities.hasScreenBroadcast);
            trace("hasScreenPlayback: " + Capabilities.hasScreenPlayback);
            trace("hasStreamingAudio: " + Capabilities.hasStreamingAudio);
            trace("hasStreamingVideo: " + Capabilities.hasStreamingVideo);
            trace("hasTLS: " + Capabilities.hasTLS);
            trace("hasVideoEncoder: " + Capabilities.hasVideoEncoder);
            trace("isDebugger: " + Capabilities.isDebugger);
            trace("isEmbeddedInAcrobat: " + Capabilities.isEmbeddedInAcrobat);
            trace("language: " + Capabilities.language);
            trace("localFileReadDisable: " + Capabilities.localFileReadDisable);
            trace("manufacturer: " + Capabilities.manufacturer);
            trace("maxLevelIDC: " + Capabilities.maxLevelIDC);
            trace("os: " + Capabilities.os);
            trace("pixelAspectRatio: " + Capabilities.pixelAspectRatio);
            trace("playerType: " + Capabilities.playerType);
            trace("screenColor: " + Capabilities.screenColor);
            trace("screenDPI: " + Capabilities.screenDPI);
            trace("screenResolutionX: " + Capabilities.screenResolutionX);
            trace("screenResolutionY: " + Capabilities.screenResolutionY);
            trace("serverString: " + Capabilities.serverString);
            trace("touchscreenType: " + Capabilities.touchscreenType);
            
            // The following capabilities are supported only when publishing for AIR.
            // If you are publishing for AIR, uncomment the following lines.       
            //trace("cpuArchitecture: " + Capabilities.cpuArchitecture);
            //trace("languages: " + Capabilities.languages);
            //trace("supports32BitProcesses: " + Capabilities.supports32BitProcesses);
            //trace("supports64BitProcesses: " + Capabilities.supports64BitProcesses);        
                        
            trace("version: " + Capabilities.version);
       
        }
    }
}





[ X ]為什麼顯示英文?
「ActionScript 3.0 參考」的內容是以英文顯示

並非所有「ActionScript 3.0 參考」的內容都翻譯為所有語言。當語言元素未翻譯時,就會以英文顯示。例如,ga.controls.HelpBox 類別並沒有翻譯為任何語言。因此在參考的繁體中文版本中,ga.controls.HelpBox 類別就會以英文顯示。