用于 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 的标签
Motion 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 的更多信息,请参阅使用 Flex SDK 中的“辅助功能”一章。

AccessibilityImplementation 类的方法是某个组件实例的 IAccessible 接口的子集。

AccessibilityImplementation 实现 IAccessible 接口的方式和发送的事件都取决于要实现的组件的类型。

请勿通过调用 AccessibilityImplementation 的构造函数直接将它实例化,通过为每个新组件扩展 AccImpl 类来创建新的辅助功能实现。在 Flash 中,请参阅 fl.accessibility 包。在 Flex 中,请参阅 mx.accessibility 包和使用 Flex SDK 中的“辅助功能”一章。

注意: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 方法,返回指定 AccessibilityImplementation 中子元素边框的 DisplayObject 或 Rectangle。
AccessibilityImplementation
  
accSelect(operation:uint, childID:uint):void
IAccessible 方法,更改此 AccessibilityImplementation 所表示组件中的选定内容。
AccessibilityImplementation
  
MSAA 方法,返回此 AccessibilityImplementation 所表示组件的默认操作,或该组件的子元素之一的默认操作。
AccessibilityImplementation
  
MSAA 方法,返回在组件内具有子焦点的子元素(如果有)的无符号整数 ID。
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 方法之前,Player 始终会清除 AccessibilityImplementation 的 errno 属性(设置为 0)。

相关 API 元素

stub

属性 
public var stub:Boolean

运行时版本: Flash Player 9, AIR 2

用于创建组件辅助功能存根。如果释放的组件不具有 ActionScript 辅助功能实现,Adobe 建议您添加组件辅助功能存根。在组件内,为实现辅助功能,此存根会使 Flash Player 将组件视为简单图形,而不会公开按钮和 Textfield 等的内部结构。

要创建组件辅助功能存根,请对相关的 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\en_US\Configuration\Classes\mx\accessibility\AccImpl.as)
构造函数详细信息

AccessibilityImplementation

()构造函数
public function AccessibilityImplementation()

运行时版本: Flash Player 9, AIR 2

静态构造函数。请勿通过调用 AccessibilityImplementation 的构造函数直接将它实例化,而应通过扩展每个新组件的 mx.accessibility.AccImpl 类来创建新的辅助功能实现。

相关 API 元素

方法详细信息

accDoDefaultAction

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

运行时版本: Flash Player 9, AIR 2

一个 IAccessible 方法,执行与此 AccessibilityImplementation 表示的组件关联的默认操作,或执行该组件的子元素之一的默认操作。

仅当 AccessibilityImplementation 表示一个在 MSAA 模型中具有默认操作的 UI 元素时,才能实现此方法。

如果只针对 AccessibilityImplementation 本身或其子元素实现 accDoDefaultAction(),则有时需要指明传递的特定 childID 没有默认操作。为 E_MEMBERNOTFOUND 设置 errno 属性即可指明这一点。

参数

childID:uint — 对应于由 getChildIDArray() 定义的组件子元素之一的无符号整数。


示例  ( 如何使用本示例 )
下面的示例演示如何实现此方法,以便在 Flex mx.accessibility.ListBaseAccImpl 类(即 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 方法,返回指定 AccessibilityImplementation 中子元素边框的 DisplayObjectRectangle

从不会使用零值的 childID 调用此方法。如果 AccessibilityImplementation 始终不会包含子元素,则不应实现此方法。如果 AccessibilityImplementation 可以包含子元素,则强制实现此方法。

通常可以通过返回表示子元素本身的对象来满足对此方法的要求。只要子元素为 DisplayObject,就可以采用这种方式。在这些情况下,将只返回与实例名称对应的 DisplayObject,该实例名称与显示列表中的相关可视对象相关联。

如果子元素不满足上述技术要求,您可以自己进行边框计算,返回具有以下属性的 Rectanglexywidthheightxy 成员指定边框的左上角,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 客户端也可能不会尝试进行此类操作。

如果遇到看似无效的标志,请为 E_INVALIDARG 设置 errno

最后请注意,调用 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 表示在 MSAA 模型中具有默认操作的 UI 元素时,才实现此方法;请确保返回 MSAA 模型指定的确切字符串。例如,Button 组件的默认操作字符串是“Press”。

如果只针对 AccessibilityImplementation 本身或其子元素实现 get_accDefaultAction,则有时需要指明传递的特定 childID 没有默认操作。只需返回 null 即可执行此操作。

参数

childID:uint — 对应于由 getChildIDArray() 定义的组件子元素之一的无符号整数。

返回
String — 在 MSAA 模型中针对 AccessibilityImplementation 或其子元素之一指定的默认操作字符串。

了解详细信息

相关 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

MSAA 方法,返回在组件内具有子焦点的子元素(如果有)的无符号整数 ID。如果不存在具有子焦点的子元素,则该方法返回零。

返回
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 属性值(如果存在)。

对于可以包含子元素的 AccessibilityImplementation,必须实现此方法,并且在 childID 不为零时必须返回一个字符串值。

根据用户界面元素的类型,MSAA 中的名称表示以下两种不同类型的内容之一:作者分配的名称或元素的实际文本内容。通常,AccessibilityImplementation 本身属于前一类,它的 name 属性就是作者分配的名称。子元素始终属于第二类,子元素名称表示其文本内容。

如果 AccessibilityImplementation 的 name 属性表示作者分配的名称,则组件从作者处获得名称的方式有两种。第一种方式采用组件本身内含的名称,例如,复选框组件可能将其包含的文本标签用作该组件的名称。第二种方式是第一种方式的后备方式,它采用 UI 中指定的名称,并以 AccessibilityProperties.name 结尾。通过此后备选项,用户指定名称的方式完全与任何其他 Sprite 或 MovieClip 名称的指定方式相同。

因此,对于 AccessibilityImplementation 本身 (childID == 0),有三种可能:

  • 组件内由作者分配的名称。如果 childID 为零,应实现 get_accName 方法,并应返回包含 AccessibilityImplementation 名称的字符串值。如果 childID 为零,但 AccessibilityImplementation 没有名称,则 get_accName 方法应返回一个空字符串,以避免 Player 转而使用 AccessibilityProperties.name 属性。

  • UI 中作者分配的名称。如果 AccessibilityImplementation 可以包含子元素,则当 childID 为零时,应实现 get_accName 方法,但该方法不应返回任何值。如果 AccessibilityImplementation 不能包含子元素,则不应实现 get_accName 方法。

  • 表示内容的名称。如果 childID 为零,应实现 get_accName 方法并由它返回适当的字符串值。如果 childID 为零,但 AccessibilityImplementation 没有内容,则 get_accName 方法应返回一个空字符串,以避免 Player 转而使用 AccessibilityProperties.name 属性。

请注意,对于子元素(如果 AccessibilityImplementation 可以包含子元素),总是适合第三种情况。如果 childID 不为零,应实现 get_accName 方法并由它返回适当的字符串值。

参数

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,这些 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 表示一个在 MSAA 模型中具有值的 UI 元素时,才能实现此方法。请注意,某些具有外观“值”的 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;如果已删除某个子元素,则其 ID 在该 AccessibilityImplementation 实例的生命周期内始终不应再次使用。请注意,由于可以使用 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 对自动标签关系的搜索,从而允许对象外的文本提供对象的名称。之所以提供此方法,是因为预计用于识别标签的标准会因组件而异。如果实现了此方法,应该致力于使用与 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 类显示为英语。