適用於 Adobe® Flash® Platform 的 ActionScript® 3.0 參考
首頁  |  隱藏套件和類別清單 |  套件  |  類別  |  新增內容  |  索引  |  附錄  |  為什麼顯示英文?
篩選: 從伺服器擷取資料...
從伺服器擷取資料...
spark.accessibility 

VideoPlayerAccImpl  - AS3 Flex

套件spark.accessibility
類別public class VideoPlayerAccImpl
繼承VideoPlayerAccImpl Inheritance AccImpl Inheritance AccessibilityImplementation Inheritance Object

語言版本: ActionScript 3.0
產品版本: Flex 4
執行階段版本: Flash Player 10, AIR 2.0

VideoPlayerAccImpl is the accessibility implementation class for spark.components.VideoPlayer.

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:

  1. Play/Pause control
  2. Scrub control
  3. Play time indicator
  4. Mute control
  5. Volume control
  6. Full Screen control

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:

  1. Play/Pause control: ROLE_SYSTEM_BUTTON
  2. Scrub control: ROLE_SYSTEM_SLIDER
  3. Play time indicator: ROLE_SYSTEM_STATICTEXT
  4. Mute control: ROLE_SYSTEM_BUTTON
  5. Volume control: ROLE_SYSTEM_SLIDER
  6. Full Screen control: ROLE_SYSTEM_BUTTON

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:

  1. Play/Pause control: "Play" or "Pause"
  2. Scrub control: "Scrub Bar"
  3. Play time indicator: the displayed text
  4. Mute control: "Muted" or "Not muted"
  5. Volume control: "Volume Bar"
  6. Full Screen control: "Full Screen"

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:

  1. Play/Pause control:
    • STATE_SYSTEM_UNAVAILABLE
    • STATE_SYSTEM_FOCUSABLE
    • STATE_SYSTEM_FOCUSED
  2. Scrub control:
    • STATE_SYSTEM_UNAVAILABLE
    • STATE_SYSTEM_FOCUSABLE
    • STATE_SYSTEM_FOCUSED
  3. Play time indicator:
    • STATE_SYSTEM_UNAVAILABLE
    • STATE_SYSTEM_READONLY
  4. Mute control:
    • STATE_SYSTEM_UNAVAILABLE
    • STATE_SYSTEM_FOCUSABLE
    • STATE_SYSTEM_FOCUSED
  5. Volume control:
    • STATE_SYSTEM_UNAVAILABLE
    • STATE_SYSTEM_FOCUSABLE
    • STATE_SYSTEM_FOCUSED
  6. Full Screen control:
    • STATE_SYSTEM_UNAVAILABLE
    • STATE_SYSTEM_FOCUSABLE
    • STATE_SYSTEM_FOCUSED

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:

  1. Play/Pause control: no Value
  2. Scrub control: Value of slider as an amount of time
  3. Play time indicator: no Value
  4. Mute control: no Value
  5. Volume control: Value of slider
  6. Full Screen control: no Value

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:

  1. Play/Pause control: "Press"
  2. Scrub control: none
  3. Play time indicator: none
  4. Mute control: "Press"
  5. Volume control: none
  6. Full Screen control: "Press"

Performing the default action of one of the child controls will have the following effect:

  1. Play/Pause control: toggle between Play and Pause
  2. Scrub control: none
  3. Play time indicator: none
  4. Mute control: toggle between Mute and Not Muted
  5. Volume control: none
  6. Full Screen control: toogle Full Screen on and off

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:

  1. Play/Pause control: accepts focus
  2. Scrub control: accepts focus
  3. Play time indicator: does not accept focus
  4. Mute control: transfers focus to Volume Bar
  5. Volume control: accepts focus
  6. Full Screen control: accepts 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.



公用屬性
 屬性定義自
 Inheritedconstructor : Object
類別物件的參照或是特定物件實體的建構函數。
Object
 Inheritederrno : uint
指出錯誤碼。
AccessibilityImplementation
 Inheritedstub : Boolean
用於建立組件輔助功能虛設常式。
AccessibilityImplementation
保護屬性
 屬性定義自
 InheritedeventsToHandle : Array
[唯讀] All subclasses must override this function by returning an array of strings of the events to listen for.
AccImpl
 Inheritedmaster : UIComponent
A reference to the UIComponent instance that this AccImpl instance is making accessible.
AccImpl
 Inheritedrole : uint
Accessibility role of the component being made accessible.
AccImpl
公用方法
 方法定義自
  
Constructor.
VideoPlayerAccImpl
 Inherited
IAccessible 方法會執行與組件關聯的預設動作,而該組件是由此 AccessibilityImplementation 或其子元素之一所代表。
AccessibilityImplementation
 Inherited
accLocation(childID:uint):*
MSAA 方法適用於傳回 DisplayObject 或 Rectangle,以便在 AccessibilityImplementation 中指定子系元素的範圍框。
AccessibilityImplementation
 Inherited
accSelect(operation:uint, childID:uint):void
用於改變組件中之選擇的 IAccessible 方法,該組件是由此 AccessibilityImplementation 所代表。
AccessibilityImplementation
  
[靜態] Enables accessibility in the VideoPlayer class.
VideoPlayerAccImpl
 Inherited
傳回組件預設動作的 MSAA 方法,該組件是由此 AccessibilityImplementation 或其子元素之一所代表。
AccessibilityImplementation
 Inherited
傳回子元素 (如果有的話) 無正負號整數 ID 的 MSAA 方法,該子元素在組件中具有子元素焦點。
AccessibilityImplementation
 Inherited
傳回組件名稱的 MSAA 方法,該組件是由此 AccessibilityImplementation 或其子元素之一所代表。
AccessibilityImplementation
 Inherited
傳回組件系統角色的 MSAA 方法,該組件是由此 AccessibilityImplementation 或其子元素之一所代表。
AccessibilityImplementation
 Inherited
傳回陣列的 MSAA 方法,該陣列包含所有選取子元素的 ID。
AccessibilityImplementation
 Inherited
傳回組件目前執行階段狀態的 IAccessible 方法,該組件是由此 AccessibilityImplementation 或其子元素之一所代表。
AccessibilityImplementation
 Inherited
傳回組件執行階段值的 MSAA 方法,該組件是由此 AccessibilityImplementation 或其子元素之一所代表。
AccessibilityImplementation
 Inherited
AccessibilityImplementation
 Inherited
AccessibilityImplementation
 Inherited
傳回陣列,其中包含 AccessibilityImplementation 所有子元素的無正負號整數 ID。
AccessibilityImplementation
 Inherited
[靜態] Method for supporting Form Accessibility.
AccImpl
 Inherited
指出物件是否有已定義的指定屬性。
Object
 Inherited
[靜態] Returns true if an ancestor of the component has enabled set to false.
AccImpl
 Inherited
傳回 true 或 false,以指出具有由 x、y、width 與 height 所指定之範圍框的文字物件,是否應該被視為此 AccessibilityImplementation 所代表之組件的標籤。
AccessibilityImplementation
 Inherited
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。
Object
 Inherited
指出指定的屬性是否存在,以及是否可列舉。
Object
 Inherited
為迴圈作業設定動態屬性的可用性。
Object
 Inherited
傳回代表此物件的字串,根據地區特定慣例進行格式化。
Object
 Inherited
會傳回指定之物件的字串形式。
Object
 Inherited
會傳回指定之物件的基本值。
Object
保護方法
 方法定義自
 Inherited
Generic event handler.
AccImpl
 Inherited
Returns the name of the accessible component.
AccImpl
 Inherited
getState(childID:uint):uint
Utility method to determine state of the accessible component.
AccImpl
建構函式詳細資料

VideoPlayerAccImpl

()建構函式
public function VideoPlayerAccImpl(master:UIComponent)

語言版本: ActionScript 3.0
產品版本: Flex 4
執行階段版本: Flash Player 10, AIR 2.0

Constructor.

參數
master:UIComponent — The UIComponent instance that this AccImpl instance is making accessible.
方法詳細資訊

enableAccessibility

()方法
public static function enableAccessibility():void

語言版本: ActionScript 3.0
產品版本: Flex 4
執行階段版本: 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.





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

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