Package | spark.accessibility |
Class | public class VideoPlayerAccImpl |
Inheritance | VideoPlayerAccImpl AccImpl flash.accessibility.AccessibilityImplementation |
Language Version : | ActionScript 3.0 |
Product Version : | Flex 4 |
Runtime Versions : | Flash Player 10, AIR 2.0 |
When a Spark VideoPlayer is created,
its accessibilityImplementation
property
is set to an instance of this class.
The Flash Player then uses this class to allow MSAA clients
such as screen readers to see and manipulate the VideoPlayer.
See the mx.accessibility.AccImpl and
flash.accessibility.AccessibilityImplementation classes
for background information about accessibility implementation
classes and MSAA.
Children
The VideoPlayer has six MSAA children:
The controls will always appear in the same order for accessibility regardless of the order of controls in the skin.
Role
The MSAA Role of a VideoPlayer is ROLE_SYSTEM_PANE.
The Role of each child control is:
Name
The MSAA Name of a VideoPlayer is, by default,
specified by a locale-dependent resource.
For the en_US locale, the name is "VideoPlayer".
When wrapped in a FormItem element,
this name is combined with the FormItem's label.
To override this behavior,
set the VideoPlayer's's accessibilityName
property.
The Name of each child control is similarly specified by a resource. The en_US names are:
To override the names of these child controls, reskin the VideoPlayer
and set the accessibilityName
of the controls.
Note that the Play/Pause control and the Mute control
have MSAA Names which change as you interact with them.
To specify them, set accessibilityName
to a comma-separated list of MSAA Names,
such as "Play,Pause" or "Not Muted,Muted".
When the Name of the VideoPlayer or one of its child controls changes, a VideoPlayer dispatches the MSAA event EVENT_OBJECT_NAMECHANGE with the proper childID for the control or 0 for itself.
Description
The MSAA Description of a VideoPlayer is, by default, the empty string,
but you can set the VideoPlayer's accessibilityDescription
property.
The Description of each child control is the empty string.
State
The MSAA State of a VideoPlayer is STATE_SYSTEM_NORMAL.
The State of each child control is:
When the State of the VideoPlayer or one of its child controls changes, a VideoPlayer dispatches the MSAA event EVENT_OBJECT_STATECHANGE with the proper childID for the control or 0 for itself.
Value
A VideoPlayer does not have an MSAA Value.
THe Value of each child control is:
When the Value of a child control changes, a VideoPlayer dispatches the MSAA event EVENT_OBJECT_VALUECHANGE with the proper childID for the control.
Location
The MSAA Location of a VideoPlayer, or one of its child controls, is its bounding rectangle.
Default Action
A VideoPlayer does not have an MSAA DefaultAction.
The DefaultAction of each child control is:
Performing the default action of one of the child controls will have the following effect:
Focus
A VideoPlayer accepts focus. When it does so, it dispatches the MSAA event EVENT_OBJECT_FOCUS event.
Some of its child controls also accept focus:
When reporting focus, the VideoPlayer reports itself if it is focused and none of its child controls is focused. Otherwise, the focus may be reported as being on the Play/Pause control, the Scrub control, the Volume control, or the Full Screen control.
Selection
A VideoPlayer does not support selection in the MSAA sense.
Method | Defined By | ||
---|---|---|---|
VideoPlayerAccImpl(master:UIComponent)
Constructor. | VideoPlayerAccImpl | ||
enableAccessibility():void [static]
Enables accessibility in the VideoPlayer class. | VideoPlayerAccImpl | ||
getFormName(component:UIComponent):String [static]
Method for supporting Form Accessibility. | AccImpl | ||
isAncestorDisabled(component:UIComponent):Boolean [static]
Returns true if an ancestor of the component has enabled set to false. | AccImpl |
VideoPlayerAccImpl | () | Constructor |
public function VideoPlayerAccImpl(master:UIComponent)
Language Version : | ActionScript 3.0 |
Product Version : | Flex 4 |
Runtime Versions : | Flash Player 10, AIR 2.0 |
Constructor.
Parametersmaster:UIComponent — The UIComponent instance that this AccImpl instance
is making accessible.
|
enableAccessibility | () | method |
public static function enableAccessibility():void
Language Version : | ActionScript 3.0 |
Product Version : | Flex 4 |
Runtime Versions : | Flash Player 10, AIR 2.0 |
Enables accessibility in the VideoPlayer class.
This method is called by application startup code
that is autogenerated by the MXML compiler.
Afterwards, when instances of VideoPlayer are initialized,
their accessibilityImplementation
property
will be set to an instance of this class.