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 タグ
使用されなくなったエレメントのリスト
Accessibility Implementation 定数
ActionScript の例の使用方法
法律上の注意
パッケージflash.system
クラスpublic final class Capabilities
継承Capabilities Inheritance Object

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 9, AIR 1.0, Flash Lite 4

Capabilities クラスは、アプリケーションをホスティングするシステムとランタイムを記述するプロパティを提供します。例えば、携帯電話の画面は 100 × 100 ピクセル、モノクロで、PC の画面は 1000 × 1000 ピクセル、カラーである場合があります。Capabilities オブジェクトを使用して、クライアントが備えている機能を特定することによって、できるだけ多数のユーザーに対して適切なコンテンツを提供できます。デバイスの機能がわかると、適切な SWF ファイルを送るようにサーバーに指示したり、表示形式を変更するように SWF ファイルに指示したりすることができます。

ただし、Adobe AIR の一部の機能は、Capabilities クラスのプロパティとしてリストに示されていません。これらは他のクラスのプロパティです。

プロパティ説明
NativeApplication.supportsDockIcon オペレーティングシステムがアプリケーションドックアイコンをサポートするかどうか。
NativeApplication.supportsMenu オペレーティングシステムがグローバルアプリケーションメニューバーをサポートするかどうか。
NativeApplication.supportsSystemTrayIcon オペレーティングシステムがシステムトレイアイコンをサポートするかどうか。
NativeWindow.supportsMenu オペレーティングシステムがウィンドウメニューをサポートするかどうか。
NativeWindow.supportsTransparency オペレーティングシステムが透明なウィンドウをサポートするかどうか。

Capabilities.os または Capabilities.manufacturer を使用して、オペレーティングシステムに基づく機能を判断しないでください。機能をオペレーティングシステムに依存することは、アプリケーションが潜在的なすべてのターゲットオペレーティングシステムを考慮していない場合に問題が発生する可能性があるので、適切ではありません。代わりに、テストしている機能に対応するプロパティを使用します。

機能情報(Capabilities.serverString プロパティに URL エンコードされたストリングとして格納されている)を、GET または POST HTTP メソッドを使用して送信できます。次に、MP3 をサポートし、解像度が 1600 × 1200 ピクセルで、Windows XP を実行しており、IME(入力方式エディター)がインストールされていて、マルチチャンネルオーディオをサポートしないコンピューターに対するサーバーストリングの例を示します。

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
supports Dolby Digital audio DD
supports Dolby Digital Plus audio DDP
supports DTS audio DTS
supports DTS Express audio DTE
supports DTS-HD High Resolution Audio DTH
supports DTS-HD Master Audio DTM

ウィンドウレスモードが無効化されているかどうかを示す WD サーバーストリングもあります。Flash Player では、Web ブラウザーまたは mms.cfg ファイルのユーザー設定との不適合という理由でウィンドウレスモードを無効化できます。対応する 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
[静的] [読み取り専用] システムに IME がインストールされているか(true)、またはインストールされていないか(false)を指定します。
Capabilities
  hasMP3 : Boolean
[静的] [読み取り専用] システムに MP3 デコーダが存在するか(true)、または存在しないか(false)を指定します。
Capabilities
  hasPrinting : Boolean
[静的] [読み取り専用] システムが印刷をサポートしているか(true)、またはサポートしていないか(false)を指定します。
Capabilities
  hasScreenBroadcast : Boolean
[静的] [読み取り専用] Flash Media Server を通して実行されるスクリーンブロードキャストアプリケーションの開発がシステムでサポートされているか(true)、またはサポートされていないか(false)を指定します。
Capabilities
  hasScreenPlayback : Boolean
[静的] [読み取り専用] Flash Media Server を通して実行されているスクリーンブロードキャストアプリケーションの再生がシステムでサポートされているか(true)、またはサポートされていないか(false)を指定します。
Capabilities
  hasStreamingAudio : Boolean
[静的] [読み取り専用] システムがストリーミングオーディオを再生できるか(true)、またはできないか(false)を指定します。
Capabilities
  hasStreamingVideo : Boolean
[静的] [読み取り専用] システムがストリーミングビデオを再生できるか(true)、またはできないか(false)を指定します。
Capabilities
  hasTLS : Boolean
[静的] [読み取り専用] NetConnection によるネイティブ SSL ソケットがサポートされているか(true)、またはサポートされていないか(false)を指定します。
Capabilities
  hasVideoEncoder : Boolean
[静的] [読み取り専用] システムが、Web カメラからの入力などのビデオストリームをエンコードできるか(true)、またはできないか(false)を指定します。
Capabilities
  isDebugger : Boolean
[静的] [読み取り専用] システムがデバッグ用の特別なバージョンか(true)、または正式にリリースされたバージョンか(false)を指定します。
Capabilities
  isEmbeddedInAcrobat : Boolean
[静的] [読み取り専用] Flash ランタイムが、Acrobat 9.0 以降で開くことができる PDF ファイルに埋め込まれているか(true)、またはそうでないか(false)を指定します。
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
[静的] [読み取り専用] 画面の 1 インチあたりのドット数(dpi)解像度をピクセル単位で指定します。
Capabilities
  screenResolutionX : Number
[静的] [読み取り専用] 画面の最大水平解像度を指定します。
Capabilities
  screenResolutionY : Number
[静的] [読み取り専用] 画面の最大垂直解像度を指定します。
Capabilities
  serverString : String
[静的] [読み取り専用] それぞれの Capabilities プロパティの値を指定する URL エンコードストリングです。
Capabilities
  supports32BitProcesses : Boolean
[静的] [読み取り専用] 32 bit プロセスの実行がサポートされているかどうかを指定します。
Capabilities
  supports64BitProcesses : Boolean
[静的] [読み取り専用] 64 bit プロセスの実行がサポートされているかどうかを指定します。
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

システムに IME がインストールされているか(true)、またはインストールされていないか(false)を指定します。サーバーストリングは IME です。



実装
    public static function get hasIME():Boolean

関連する API エレメント

hasMP3

プロパティ 
hasMP3:Boolean  [読み取り専用]

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 9, AIR 1.0, Flash Lite 4

システムに MP3 デコーダが存在するか(true)、または存在しないか(false)を指定します。サーバーストリングは 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

Flash Media Server を通して実行されるスクリーンブロードキャストアプリケーションの開発がシステムでサポートされているか(true)、またはサポートされていないか(false)を指定します。サーバーストリングは SB です。



実装
    public static function get hasScreenBroadcast():Boolean

hasScreenPlayback

プロパティ 
hasScreenPlayback:Boolean  [読み取り専用]

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 9, AIR 1.0, Flash Lite 4

Flash Media Server を通して実行されているスクリーンブロードキャストアプリケーションの再生がシステムでサポートされているか(true)、またはサポートされていないか(false)を指定します。サーバーストリングは 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

NetConnection によるネイティブ SSL ソケットがサポートされているか(true)、またはサポートされていないか(false)を指定します。サーバーストリングは TLS です。



実装
    public static function get hasTLS():Boolean

関連する API エレメント

hasVideoEncoder

プロパティ 
hasVideoEncoder:Boolean  [読み取り専用]

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 9, AIR 1.0, Flash Lite 4

システムが、Web カメラからの入力などのビデオストリームをエンコードできるか(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 Debug Launcher(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 ランタイムが、Acrobat 9.0 以降で開くことができる PDF ファイルに埋め込まれているか(true)、またはそうでないか(false)を指定します。



実装
    public static function get isEmbeddedInAcrobat():Boolean

language

プロパティ 
language:String  [読み取り専用]

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 9, AIR 1.0, Flash Lite 4

コンテンツが実行されているシステムの言語コードを指定します。言語は、ISO 639-1 で規定された小文字 2 文字の言語コードで指定されます。中国語については、簡体字と繁体字を識別するために、ISO 3166 で規定された大文字 2 文字の国コードが追加されます。言語コードは、言語の英語名に基づきます。例えば、hu はハンガリー語を示します。

英語のシステムでは、このプロパティは言語コード(en)のみを返し、国コードは返しません。Microsoft Windows システムでは、このプロパティはユーザーインターフェイス(UI)言語を返します。UI 言語は、すべてのメニュー、ダイアログボックス、エラーメッセージ、ヘルプファイルなどで使用される言語です。次の表に、指定できる値を示します。

言語
チェコ語cs
デンマーク語da
オランダ語nl
英語en
フィンランド語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 ランタイム(Capabilities.playerType"PlugIn" に設定されている HTML ページによりロードされる SWF コンテンツは除く)
  • "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

画面の 1 インチあたりのドット数(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

それぞれの Capabilities プロパティの値を指定する URL エンコードストリングです。

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 bit プロセスの実行がサポートされているかどうかを指定します。サーバーストリングは PR32 です。



実装
    public static function get supports32BitProcesses():Boolean

supports64BitProcesses

プロパティ 
supports64BitProcesses:Boolean  [読み取り専用]

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 10.0.32, AIR 1.5.2

64 bit プロセスの実行がサポートされているかどうかを指定します。サーバーストリングは 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 出力を備えたブルーレイプレーヤーを古いアンプに接続している場合について考えてみます。古いアンプは DTS に対応していませんが、S/PDIF にはブルーレイプレーヤーに通知するプロトコルがありません。ブルーレイプレーヤーから古いアンプに 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 — マルチチャンネルオーディオタイプを表すストリング値。有効な値は、flash.media.AudioDecoder に定義されている定数です。

戻り値
Booleantype パラメーターに渡されたマルチチャンネルオーディオタイプをシステムがサポートする場合は、ブール値 true。それ以外の場合、戻り値は false です。

関連する API エレメント


例  ( この例の使用方法 )
次のコードは、hasMultiChannelAudio() の呼び出しの戻り値をトレースします。この戻り値は、システムがドルビーデジタルマルチチャンネルオーディオをサポートするかどうかを示します。
    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 クラスは英語で表示されます。