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

AccessibilityImplementation  - 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.accessibility
類別public class AccessibilityImplementation
繼承AccessibilityImplementation Inheritance Object
子類別 AccImpl, AccImpl

執行階段版本: Flash Player 9, AIR 2

AccessibilityImplementation 類別是 Flash Player 的基礎類別,可允許在組件中實作輔助功能。此類別會啟用組件和螢幕朗讀程式之間的通訊。 螢幕朗讀程式可以用來為視力不佳的使用者,將螢幕內容轉譯成合成語音或盲用點字。

AccessibilityImplementation 類別提供一組方法,可讓組件開發人員製作關於系統角色、物件基礎事件以及輔助性技術可用狀態的資訊。

Adobe Flash Player 使用 Microsoft Active Accessibility (MSAA),它提供具說明的標準化方式,讓應用程式和螢幕朗讀程式進行通訊。如需有關 Flash Player 如何與 MSAA 搭配使用的詳細資訊,請參閱 Using Flex SDK 中的「輔助功能」一章。

AccessibilityImplementation 類別的方法是用於組件實體的 IAccessible 介面子集。

AccessibilityImplementation 會實作 IAccessible 介面以及它所傳送的事件,視實作的組件種類而定。

不要呼叫 AccessibilityImplementation 的建構函式,來直接實體化 AccessibilityImplementation。而是為每個新組件擴充 AccImpl 類別,以建立新的輔助功能實作。在 Flash 中,請參閱 fl.accessibility 套件。在 Flex 中,請參閱 Using Flex SDK 中的「mx.accessibility 套件與輔助功能」一章。

注意:在 AIR 2 之前的 AIR 執行階段版本不支援 AccessibilityImplementation 類別。在 AIR 2 之前的 AIR 版本可使用此類別進行編譯,但是 AIR 2 之前的版本在執行階段不支援此類別。



公用屬性
 屬性定義自
 Inheritedconstructor : Object
類別物件的參照或是特定物件實體的建構函數。
Object
  errno : uint
指出錯誤碼。
AccessibilityImplementation
  stub : Boolean
用於建立組件輔助功能虛設常式。
AccessibilityImplementation
公用方法
 方法定義自
  
靜態建構函式。
AccessibilityImplementation
  
IAccessible 方法會執行與組件關聯的預設動作,而該組件是由此 AccessibilityImplementation 或其子元素之一所代表。
AccessibilityImplementation
  
accLocation(childID:uint):*
MSAA 方法適用於傳回 DisplayObject 或 Rectangle,以便在 AccessibilityImplementation 中指定子系元素的範圍框。
AccessibilityImplementation
  
accSelect(operation:uint, childID:uint):void
用於改變組件中之選擇的 IAccessible 方法,該組件是由此 AccessibilityImplementation 所代表。
AccessibilityImplementation
  
傳回組件預設動作的 MSAA 方法,該組件是由此 AccessibilityImplementation 或其子元素之一所代表。
AccessibilityImplementation
  
傳回子元素 (如果有的話) 無正負號整數 ID 的 MSAA 方法,該子元素在組件中具有子元素焦點。
AccessibilityImplementation
  
傳回組件名稱的 MSAA 方法,該組件是由此 AccessibilityImplementation 或其子元素之一所代表。
AccessibilityImplementation
  
傳回組件系統角色的 MSAA 方法,該組件是由此 AccessibilityImplementation 或其子元素之一所代表。
AccessibilityImplementation
  
傳回陣列的 MSAA 方法,該陣列包含所有選取子元素的 ID。
AccessibilityImplementation
  
傳回組件目前執行階段狀態的 IAccessible 方法,該組件是由此 AccessibilityImplementation 或其子元素之一所代表。
AccessibilityImplementation
  
傳回組件執行階段值的 MSAA 方法,該組件是由此 AccessibilityImplementation 或其子元素之一所代表。
AccessibilityImplementation
  
AccessibilityImplementation
  
AccessibilityImplementation
  
傳回陣列,其中包含 AccessibilityImplementation 所有子元素的無正負號整數 ID。
AccessibilityImplementation
 Inherited
指出物件是否有已定義的指定屬性。
Object
  
傳回 true 或 false,以指出具有由 x、y、width 與 height 所指定之範圍框的文字物件,是否應該被視為此 AccessibilityImplementation 所代表之組件的標籤。
AccessibilityImplementation
 Inherited
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。
Object
 Inherited
指出指定的屬性是否存在,以及是否可列舉。
Object
 Inherited
為迴圈作業設定動態屬性的可用性。
Object
 Inherited
傳回代表此物件的字串,根據地區特定慣例進行格式化。
Object
 Inherited
會傳回指定之物件的字串形式。
Object
 Inherited
會傳回指定之物件的基本值。
Object
屬性詳細資訊

errno

屬性
public var errno:uint

執行階段版本: Flash Player 9, AIR 2

指出錯誤碼。在帶外通訊而非在傳回值中指出的錯誤。若要指出錯誤,請將 errno 屬性設定為在 AccessibilityImplementation 常數附錄中所記載的錯誤碼其中之一。這會使得傳回值被忽略。在呼叫 AccessibilityImplementation 方法之前,播放程式永遠都會清除 (設定為零) AccessibilityImplementation 的 errno 屬性。

相關 API 元素

stub

屬性 
public var stub:Boolean

執行階段版本: Flash Player 9, AIR 2

用於建立組件輔助功能虛設常式。如果未經 ActionScript 輔助功能實作即發行組件,Adobe 建議您加入組件輔助功能虛設常式。基於輔助功能的目的,此虛設常式會使 Flash Player 將組件視為單一圖形,而非公開組件中按鈕、文字欄位等的內部結構。

若要建立組件輔助功能虛設常式,請將相關的 AccImpl 類別分成子分類,並以值 true 來覆寫屬性虛設常式。

相關 API 元素

Flex 中的 mx.accessibility.AccImpl 類別 (\sdks\4.0.0\frameworks\projects\framework\src\mx\accessibility\AccImpl.as)
在 Flash 中的 fl.accessibility.AccImpl 類別 (\Local Settings\Application Data\Adobe\Flash CS5\zh_TW\Configuration\Classes\mx\accessibility\AccImpl.as)
建構函式詳細資料

AccessibilityImplementation

()建構函式
public function AccessibilityImplementation()

執行階段版本: Flash Player 9, AIR 2

靜態建構函式。不要呼叫 AccessibilityImplementation 的建構函式,來直接實體化 AccessibilityImplementation。而是為每個新組件擴充 mx.accessibility.AccImpl 類別,以建立新的輔助功能實作。

相關 API 元素

方法詳細資訊

accDoDefaultAction

()方法
public function accDoDefaultAction(childID:uint):void

執行階段版本: Flash Player 9, AIR 2

IAccessible 方法會執行與組件關聯的預設動作,而該組件是由此 AccessibilityImplementation 或其子元素之一所代表。

只有在 AccessibilityImplementation 代表的 UI 元素在 MSAA 模型中有預設動作時,才實作此方法。

如果您只要為 AccessibilityImplementation 本身或是僅為其子元素實作 accDoDefaultAction(),在某些情況下,您將需要指出已傳遞的特定 childID 沒有預設動作。如果要這麼做,請將 errno 屬性設定為 E_MEMBERNOTFOUND

參數

childID:uint — 對應於組件子元素之一的無正負號整數,由 getChildIDArray() 所定義。


範例  ( 如何使用本範例 )
下列範例顯示如何實作此方法,以便在 Flex mx.accessibility.ListBaseAccImpl 類別 (ListBase 輔助功能實作) 中執行適當的預設動作。對於 ListBase 及繼承自 ListBase 的類別,為其中一個子系清單項目元素執行預設動作「按兩下」,會選取該元素。
     override public function accDoDefaultAction(childID:uint):void
     {
         if (childID > 0)
             ListBase(master).selectedIndex = childID - 1;
     }

accLocation

()方法 
public function accLocation(childID:uint):*

執行階段版本: Flash Player 9, AIR 2

MSAA 方法適用於傳回 DisplayObjectRectangle,以便在 AccessibilityImplementation 中指定子系元素的範圍框。

此方法從未使用值為零的 childID 來呼叫。如果 AccessibilityImplementation 不會包含子元素,則不應該實作此方法。如果 AccessibilityImplementation 可以包含子元素,這個方法則為強制性。

您通常可以透過傳回代表子元素本身的物件,來滿足此方法的需求。只要子元素為 DisplayObject,此做法便會成功。在這些情況下,只要傳回對應至與顯示清單中相關視覺物件相關聯的實體名稱之 DisplayObject

如果子元素不適合上述技巧,您可以自行進行範圍框算術,並使用下列項目傳回 Rectanglexywidthheight 屬性。xy 成員會指定範圍框的左上角,而 widthheight 成員則會指定其大小。所有四個成員都應該使用「舞台」像素的單位,並相對於 AccessibilityImplementation 所代表的組件原點。xy 屬性可能會有負值,因為 DisplayObject 的原點不需要在其左上角。

如果看不見 childID 所指定的子元素 (也就是該子系的 get_accState 會傳回包括 STATE_SYSTEM_INVISIBLE 的值),您可以從 accLocation 傳回 null。如果子元素為可見,您也可以傳回代表子元素顯示座標的 Rectangle

參數

childID:uint — 對應於組件子元素之一的無正負號整數,由 getChildIDArray() 所定義。

傳回值
*DisplayObjectRectangle 會指定由 childID 參數所指定的子系元素範圍框。

詳細資訊

相關 API 元素


範例  ( 如何使用本範例 )
下列範例顯示如何實作此方法,以便在 Flex mx.accessibility.ListBaseAccImpl 類別 (ListBase 輔助功能實作) 中傳回指定子元素的位置。
     override public function accLocation(childID:uint):*
     
     {
         var listBase:ListBase = ListBase(master);
     
         var index:uint = childID - 1;
         
         if (index < listBase.verticalScrollPosition ||
             index >= listBase.verticalScrollPosition + listBase.rowCount)
         {
             return null;
         }
         var item:Object = getItemAt(index);
     
         return listBase.itemToItemRenderer(item);
     }
     

accSelect

()方法 
public function accSelect(operation:uint, childID:uint):void

執行階段版本: Flash Player 9, AIR 2

用於改變組件中之選擇的 IAccessible 方法,該組件是由此 AccessibilityImplementation 所代表。

childID 參數將永遠不為零。此方法永遠適用於子元素,而非整個組件,Flash Player 會管理整個組件本身的選取範圍。

selFlag 參數是一種位元欄位,包含一或多個選取旗標常數,允許 MSAA 用戶端指出 childID 所參考的項目應如何選取或聚焦。後面會接著選取旗標常數的說明,以及這些常數與輔助功能實作通訊的內容。實際上,在繼承自 Flex mx.accessibility.ListBaseAccImpl 類別之輔助功能實作中此方法的大部分實作,都會忽略 selFlag 常數,並依賴組件的鍵盤選取行為處理多重選取。

selFlag 參數可包含或不包含 SELFLAG_TAKEFOCUS 旗標。如果包含,您應該將子元素焦點設為指定的 childID,而且除非 SELFLAG_EXTENDSELECTION 也存在,否則請將子元素設為選取錨點。如果不包含,子元素焦點與選取錨點應該維持不變,儘管在下方所述的其他旗標可能修改此選取範圍。

selFlag 引數永遠都包含下列四個旗標之一,這會指出要使用哪種選取範圍修改:

  • SELFLAG_TAKESELECTION:清除任何現有的選取範圍,並將選取範圍設定為指定的 childID

  • SELFLAG_EXTENDSELECTION:計算在選取錨點與指定的 childID 之間 (包含此兩者) 的子元素範圍。如果 SELFLAG_ADDSELECTION 存在,請將這些子元素全部都新增至選取範圍。如果 SELFLAG_REMOVESELECTION 存在,請將這些子元素全部都從選取範圍移除。如果 SELFLAG_ADDSELECTIONSELFLAG_REMOVESELECTION 都不存在,所有這些子元素都應該具有選取範圍錨點的選取範圍狀態:如果選取範圍錨點為已選取狀態,請將這些子元素新增至選取範圍;否則請從選取範圍移除它們。

  • SELFLAG_ADDSELECTION (沒有 SELFLAG_EXTENDSELECTION):將指定的 childID 新增至選取範圍。

  • SELFLAG_REMOVESELECTION (沒有 SELFLAG_EXTENDSELECTION):從選取範圍移除指定的 childID

請注意對於非可多重選取的組件而言,唯一有效的 selFlag 參數值是 SELFLAG_TAKEFOCUSSELFLAG_TAKESELECTION。理論上,您也可以為允許使用者強制 null 選取範圍的非可多重選取之組件,選擇支援 SELFLAG_REMOVESELECTION,但是實際上大部分非可多重選取的組件並不是以此方式運作,MSAA 用戶端無法嘗試此類型的作業。

如果發生無效的旗標,請將 errno 設為 E_INVALIDARG

最後,請注意在呼叫 accSelect 時,Flash Player 可確保它具有「主機焦點」(其容器應用程式的視窗焦點),而且您的組件在 Flash Player 中具有焦點。

參數

operation:uint — 包含一或多個選取旗標常數的位元欄位,以指出如何選取或聚焦該項目。
 
childID:uint — 對應於組件子元素之一的無正負號整數,由 getChildIDArray() 所定義。

詳細資訊

相關 API 元素


範例  ( 如何使用本範例 )
下列範例顯示如何實作此方法,以便在 Flex mx.accessibility.ListBaseAccImpl 類別 (ListBase 輔助功能實作) 中選取子項目。
override public function accSelect(selFlag:uint, childID:uint):void
     {
         
         var listBase:ListBase = ListBase(master);
         
         var index:uint = childID - 1;
         
         if (index >= 0 && index < listBase.dataProvider.length)
             listBase.selectedIndex = index;
     }
     

get_accDefaultAction

()方法 
public function get_accDefaultAction(childID:uint):String

執行階段版本: Flash Player 9, AIR 2

傳回組件預設動作的 MSAA 方法,該組件是由此 AccessibilityImplementation 或其子元素之一所代表。

只有在 AccessibilityImplementation 代表的 UI 元素在 MSAA 模型中有預設動作時,才實作此方法;請務必確定傳回 MSAA 模型指定的相同字串。例如,Button 組件的預設動作字串是 "Press"。

如果您只要為 AccessibilityImplementation 本身或是僅為其子元素實作 get_accDefaultAction,在某些情況下,您將需要指出已傳遞的特定 childID 沒有預設動作。只要傳回 null 就可以做到。

參數

childID:uint — 對應於組件子元素之一的無正負號整數,由 getChildIDArray() 所定義。

傳回值
String — 在 AccessibilityImplementation 的 MSAA 模型中或是為其子元素指定的預設動作字串。

詳細資訊

相關 API 元素


範例  ( 如何使用本範例 )
下列範例顯示如何實作此方法,以便在 Flex mx.accessibility.ListBaseAccImpl 類別 (ListBase 輔助功能實作) 中傳回適當的預設動作。
override public function get_accDefaultAction(childID:uint):String
     {
         if (childID == 0)
             return null;
     
         return "Double Click";
     }

get_accFocus

()方法 
public function get_accFocus():uint

執行階段版本: Flash Player 9, AIR 2

傳回子元素 (如果有的話) 無正負號整數 ID 的 MSAA 方法,該子元素在組件中具有子元素焦點。如果沒有具有子系焦點的子系,此方法會傳回零。

傳回值
uint — 子元素 (如果有的話) 的無正負號整數 ID,該子元素在組件中具有子元素焦點。

詳細資訊

相關 API 元素


範例  ( 如何使用本範例 )
下列範例顯示如何實作此方法,以便在 Flex mx.accessibility.ListBaseAccImpl 類別 (ListBase 輔助功能實作) 中傳回具有焦點的 childID。
override public function get_accFocus():uint
     {
     var index:uint = ListBase(master).selectedIndex;
     
     return index >= 0 ? index + 1 : 0;
     }

get_accName

()方法 
public function get_accName(childID:uint):String

執行階段版本: Flash Player 9, AIR 2

傳回組件名稱的 MSAA 方法,該組件是由此 AccessibilityImplementation 或其子元素之一所代表。

在 AccessibilityImplementation 本身的案例中 (childID == 0),如果未實作此方法或是未傳回值,Flash Player 會使用 AccessibilityProperties.name 屬性值 (如果此屬性值存在)。

對於有子元素的 AccessibilityImplementations,必須實作此方法,而且在 childID 不為零時必須傳回字串值。

視使用者介面元素的類型而定,在 MSAA 中的名稱表示兩件不同事情之一:作者指定的名稱,或是元素的實際文字內容。通常,AccessibilityImplementation 本身會歸類至前者的類別。其 name 屬性是作者指定的名稱。子元素永遠都歸類為第二個類別。其名稱會指出其文字內容。

AccessibilityImplementation 的 name 屬性具有作者指定之名稱的意義,組件從作者取得名稱的方式有兩種。第一種方式需要在組件本身中有名稱;例如,核取方塊組件包括作為其名稱的文字標籤。第二種方式 (第一種方式的後援) 需要在 UI 中指定名稱,並以 AccessibilityProperties.name 做結尾。此後援選項可讓使用者指定名稱,就像為任何其他 Sprite 或 MovieClip 指定名稱一樣。

這使得 AccessibilityImplementation 本身有三種可能性 (childID == zero):

  • 作者在組件中指定名稱。應該實作 get_accName 方法,並且在 childID 為零時應該傳回 AccessibilityImplementation 之名稱的字串值。如果 childID 為零,但是 AccessibilityImplementation 沒有名稱,get_accName 應該傳回空的字串,以防止播放程式回復成 AccessibilityProperties.name 屬性。

  • 作者從 UI 指定名稱。 如果 AccessibilityImplementation 可以具有子元素,get_accName 方法應該予以實作,但不應該在 childID 為零時傳回值。如果 AccessibilityImplementation 永遠都不會有子元素,則不應該實作 get_accName

  • 代表內容的名稱。應該實作 get_accName 方法,並且在 childID 為零時應該傳回適當的字串值。如果 childID 為零,但是 AccessibilityImplementation 沒有內容,get_accName 應該傳回空的字串,以防止播放程式回復到 AccessibilityProperties.name 屬性。

請注意對於子元素而言 (如果 AccessibilityImplementation 可以擁有它們),永遠適用第三種情況。應該實作 get_accName 方法,並且在 childID 為非零時應該傳回適當的字串值。

參數

childID:uint — 對應於組件子元素之一的無正負號整數,由 getChildIDArray() 所定義。

傳回值
String — 組件的名稱或其中一個子元素的名稱。

詳細資訊

相關 API 元素


範例  ( 如何使用本範例 )
下列範例顯示如何在 Flex mx.accessibility.AccImpl 類別及 Flex 的基礎輔助功能實作中實作此方法。
override public function get_accName(childID:uint):String
     {
         // Start with the name of the component's parent form 
          // if the component is contained within a form
         var accName:String = UIComponentAccImpl.getFormName(master);
     
         // If the element requested is the component itself, 
         // append the value of any assigned accessibilityProperties.name    
         if (childID == 0 && master.accessibilityProperties 
             && master.accessibilityProperties.name 
                 && master.accessibilityProperties.name != "")
             accName += master.accessibilityProperties.name + " ";
     
         // Append the value of the childIDs name 
     // returned by the component-specific override 
     // of the mx.accessibility.AccImpl.getName() utility function,
         // and append the component's status returned by the 
     // component-specific override of the 
     // mx.accessibility.AccImpl.getStatusName() utility function
         accName += getName(childID) + getStatusName();
     
     // Return the assembled String if it is neither empty nor null, 
     // otherwise return null
         return (accName != null && accName != "") ? accName : null;
     }

get_accRole

()方法 
public function get_accRole(childID:uint):uint

執行階段版本: Flash Player 9, AIR 2

傳回組件系統角色的 MSAA 方法,該組件是由此 AccessibilityImplementation 或其子元素之一所代表。針對 MSAA 中所有組件預先定義的系統角色。

參數

childID:uint — 對應於組件子元素之一的無正負號整數,由 getChildIDArray() 所定義。

傳回值
uint — 與組件相關聯的系統角色。

擲回值
Error — 錯誤碼 2143,AccessibilityImplementation.get_accRole() 必須由其預設值覆寫。

詳細資訊

相關 API 元素

get_accSelection

()方法 
public function get_accSelection():Array

執行階段版本: Flash Player 9, AIR 2

傳回陣列的 MSAA 方法,該陣列包含所有選取子元素的 ID。傳回的陣列可能包含零個、一個或多個 ID,全部都是無正負號的整數。

傳回值
Array — 所有已選取之子元素的 ID 陣列。

詳細資訊

相關 API 元素


範例  ( 如何使用本範例 )
下列範例顯示如何實作此方法,以便在 Flex mx.accessibility.ListBaseAccImpl 類別 (ListBase 輔助功能實作) 中傳回選取的 childID。
     override public function get_accSelection():Array
     {
         var accSelection:Array = [];
     
         var selectedIndices:Array = ListBase(master).selectedIndices;
         
         var n:int = selectedIndices.length;
         for (var i:int = 0; i < n; i++)
         {
             accSelection[i] = selectedIndices[i] + 1;
         }
         
         return accSelection;
     }
     

get_accState

()方法 
public function get_accState(childID:uint):uint

執行階段版本: Flash Player 9, AIR 2

傳回組件目前執行階段狀態的 IAccessible 方法,該組件是由此 AccessibilityImplementation 或其子元素之一所代表。

此方法必須為 MSAA 中的組件傳回零個、一個或多個預先定義的物件狀態常數。當套用多個狀態時,應該使用 | (位元 OR 運算子) 來將狀態常數結合成位元欄位。

若要指出目前未套用任何狀態常數,此方法應該傳回零。

您不應該追蹤或回報 STATE_SYSTEM_FOCUSABLE 或 STATE_SYSTEM_FOCUSED 狀態。Flash Player 會自動處理這些狀態。

參數

childID:uint — 對應於組件子元素之一的無正負號整數,由 getChildIDArray() 所定義。

傳回值
uint — 零個、一個或多個系統狀態常數的組合。會使用 | (位元 OR 運算子) 將多個常數組合成一個位元欄位。

擲回值
Error — 錯誤碼 2144,AccessibilityImplementation.get_accState() 必須由其預設值覆寫。

詳細資訊

相關 API 元素


範例  ( 如何使用本範例 )
下列範例顯示如何實作此方法,以便在 mx.accessibility.ListBaseAccImpl (Flex ListBase 輔助功能實作) 中結合多個狀態常數。
     override public function get_accState(childID:uint):uint
     {
         var accState:uint = getState(childID);
     
         if (childID > 0) 
         {
             var listBase:ListBase = ListBase(master);
     
             var index:uint = childID - 1;
     
             // For returning states (OffScreen and Invisible)
             // when the list Item is not in the displayed rows.
             if (index < listBase.verticalScrollPosition ||
                 index >= listBase.verticalScrollPosition + listBase.rowCount)
             {
                 accState |= (STATE_SYSTEM_OFFSCREEN |
                              STATE_SYSTEM_INVISIBLE);
             }
             else
             {
                 accState |= STATE_SYSTEM_SELECTABLE;
     
                 var item:Object = getItemAt(index);
     
                 var renderer:IListItemRenderer =
                     listBase.itemToItemRenderer(item);
     
                 if (renderer != null && listBase.isItemSelected(renderer.data))
                     accState |= STATE_SYSTEM_SELECTED | STATE_SYSTEM_FOCUSED;
             }
         }
     
         return accState;
     }

get_accValue

()方法 
public function get_accValue(childID:uint):String

執行階段版本: Flash Player 9, AIR 2

傳回組件執行階段值的 MSAA 方法,該組件是由此 AccessibilityImplementation 或其子元素之一所代表。

只有在 AccessibilityImplementation 代表的 UI 元素在 MSAA 模型中擁有值時,才實作此方法。請注意有些具有明顯「值」的 UI 元素,實際上會透過不同方式來公開此值,例如 get_accName (例如,文字)、get_accState (例如,核取方塊) 或 get_accSelection (例如,清單方塊)。

如果您只要為 AccessibilityImplementation 本身或是僅為其子元素實作 get_accValue,在某些情況下,您將需要指出已傳遞的特定 childID 沒有值的概念。只要傳回 null 就可以做到。

參數

childID:uint — 對應於組件子元素之一的無正負號整數,由 getChildIDArray() 所定義。

傳回值
String — 字串,代表其中一個子元素組件的執行階段值。

詳細資訊

相關 API 元素


範例  ( 如何使用本範例 )
下列範例顯示如何實作此方法,以便在 Flex mx.accessibility.ListBaseAccImpl 類別 (ListBase 輔助功能實作) 中根據組件的 selectedIndex 值傳回適當的值。
override public function get_accValue(childID:uint):String
     {
         var accValue:String;
         
         var listBase:ListBase = ListBase(master);
         
         var index:int = listBase.selectedIndex;
         if (childID == 0)
         {
             if (index > -1)
             {
                 var item:Object = getItemAt(index);
     
                 if (item is String)
                 {
                     accValue = item + " " + (index + 1) + " of " + listBase.dataProvider.length;
                 }
                 else
                 {
                     accValue = listBase.itemToLabel(item) + " " + (index + 1) +
                                " of " + listBase.dataProvider.length;
                 }
             }
         }
     
         return accValue;
     }

get_selectionActiveIndex

()方法 
public function get_selectionActiveIndex():*

傳回值
*

get_selectionAnchorIndex

()方法 
public function get_selectionAnchorIndex():*

傳回值
*

getChildIDArray

()方法 
public function getChildIDArray():Array

執行階段版本: Flash Player 9, AIR 2

傳回陣列,其中包含 AccessibilityImplementation 所有子元素的無正負號整數 ID。

陣列的長度有可能是零。陣列中的 ID 應該以和其所代表的子元素之相同邏輯順序顯示。如果 AccessibilityImplementation 可以包含子元素,這個方法則為強制性,否則,請勿實作它。

在指定子 ID 給子元素時,請使用會保留 AccessibilityImplementation 每個實體中唯一性的配置。子 ID 不必是連續的,而且其順序不必符合子元素的邏輯順序。您應該加以排列,才「不會」重複使用子 ID;如果刪除子元素,在該 AccessibilityImplementation 實體的存留期間不應該再使用其 ID。請注意,因為 Flash Player 程式碼中實作選擇的關係,如果您使用超過一百萬的子 ID,可能會產生不想要的行為。

傳回值
Array — 陣列,其中包含 AccessibilityImplementation 所有子元素的無正負號整數 ID。

範例  ( 如何使用本範例 )
下列範例顯示如何實作此方法,以便在 Flex mx.accessibility.ListBaseAccImpl 類別 (ListBase 輔助功能實作) 中傳回 childID 的陣列。
     override public function getChildIDArray():Array
     {
         var childIDs:Array = [];
     
         if (ListBase(master).dataProvider)
         {
             var n:uint = ListBase(master).dataProvider.length;
             for (var i:int = 0; i < n; i++)
             {
                 childIDs[i] = i + 1;
             }
         }
         return childIDs;
     }
     

isLabeledBy

()方法 
public function isLabeledBy(labelBounds:Rectangle):Boolean

執行階段版本: Flash Player 9, AIR 2

傳回 truefalse,以指出具有由 xywidthheight 所指定之範圍框的文字物件,是否應該被視為此 AccessibilityImplementation 所代表之組件的標籤。

xy 座標是相對於 AccessibilityImplementation 套用之組件的左上角,也可能是負數。所有座標都是以「舞台」像素為單位。

此方法允許將可存取的組件整合至 Flash Player 的搜尋,以尋找自動標籤關係,這允許物件外部的文字提供物件的名稱。之所以提供此方法,是因為辨識標籤的準則,會隨不同組件而異。如果您實作此方法,您應該以使用幾何準則為目標,這個準則類似於在播放程式的程式碼內部,為按鈕與文字欄位所使用的準則。這些準則如下所示:

  • 對於按鈕,任何完整位於按鈕內部的文字都會視為標籤。
  • 對於文字欄位,任何顯示在上方附近與靠左對齊的文字,或是左邊附近的文字,都會視為標籤。

如果 AccessibilityImplementation 代表的組件不應該參與自動標籤關係,請勿實作 isLabeledBy。這會等於永遠傳回 false。不應該實作 isLabeledBy 的一種情況,請參考當 AccessibilityImplementation 歸類為「組件中作者指定的名稱」案例時 (如上方 get_accName 之下所述)。

請注意,這個方法未根據任何 IAccessible 方法;它是 Flash 特有的方法。

參數

labelBounds:Rectangle — 代表文字物件範圍框的 Rectangle。

傳回值
Booleantruefalse,指出具有指定標籤繫結的文字方塊,是否應該被視為此 AccessibilityImplementation 所代表的組件標籤。




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

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