| Package | org.openvideoplayer.components.ui.controlbar |
| Class | public class ControlBar |
| Inheritance | ControlBar flash.display.Sprite |
| Property | Defined By | ||
|---|---|---|---|
| controlBarBackgroundAlpha : Number
Accessor for the main background alpha of the control bar. | ControlBar | ||
| controlBarBackgroundColor : Number
Accessor for the background color for both the control bar's main background as well
as each controls background that is added to the control bar. | ControlBar | ||
| controlUpperHighlightAlpha : Number
Accessor for the alpha of the highlight that covers 50% height of both the
control bar's main background shape and all the controls main backgrounds. | ControlBar | ||
| controlUpperHighlightColor : uint
Accessor for the color of the highlight that covers 50% height of both the
control bar's main background shape and all the controls main backgrounds. | ControlBar | ||
| downloadProgressBarColor : uint
Accessor for the scrub bar's download progress bar color. | ControlBar | ||
| height : Number [override]
Accessor for the height of the entire control bar. | ControlBar | ||
| iconAlpha : Number
Accessor for the icon alpha that all the controls use. | ControlBar | ||
| iconColor : uint
Accessor for the icon color that all the controls use. | ControlBar | ||
| progressBarColor : uint
Accessor for the scrub bar's progress bar color. | ControlBar | ||
| sliderTrackBackgroundColor : uint
Accessor for the color of the scrub bar's background. | ControlBar | ||
| strokeAlpha : Number
Accessor for the stroke alpha of the control bar and all the controls. | ControlBar | ||
| strokeColor : uint
Accessor for the stroke color of the control bar and all the controls. | ControlBar | ||
| width : Number [override]
Accessor for the width of the entire control bar. | ControlBar | ||
| Method | Defined By | ||
|---|---|---|---|
| ControlBar | |||
addControl(value:BaseComponent):void
Use this method to add a single instantiated BaseComponent Control
to the Component. | ControlBar | ||
addControls(value:Array):void
Use this method to add and Array of already instantiated BaseComponent
Controls to the Component at one time. | ControlBar | ||
getControl(type:String):BaseComponent
Use this method to get a reference to the BaseComponent Control after
it has been added to the control bar. | ControlBar | ||
| controlBarBackgroundAlpha | property |
controlBarBackgroundAlpha:NumberAccessor for the main background alpha of the control bar. Change this property if the you want to alter the main backgrounds's alpha transparency This property will not effect the entire alpha of the component. Default 1
public function get controlBarBackgroundAlpha():Number public function set controlBarBackgroundAlpha(value:Number):void| controlBarBackgroundColor | property |
controlBarBackgroundColor:NumberAccessor for the background color for both the control bar's main background as well as each controls background that is added to the control bar. Default 0x000000
public function get controlBarBackgroundColor():Number public function set controlBarBackgroundColor(value:Number):void| controlUpperHighlightAlpha | property |
controlUpperHighlightAlpha:NumberAccessor for the alpha of the highlight that covers 50% height of both the control bar's main background shape and all the controls main backgrounds. Default 0.1
public function get controlUpperHighlightAlpha():Number public function set controlUpperHighlightAlpha(value:Number):void| controlUpperHighlightColor | property |
controlUpperHighlightColor:uintAccessor for the color of the highlight that covers 50% height of both the control bar's main background shape and all the controls main backgrounds. Default 0xFFFFFF
public function get controlUpperHighlightColor():uint public function set controlUpperHighlightColor(value:uint):void| downloadProgressBarColor | property |
downloadProgressBarColor:uintAccessor for the scrub bar's download progress bar color. The download progress bar is used to indicate the current download progress for an item that the control bar is controlling. An example of this would be on a progressive download video file it would show the BytesLoaded vs the BytesTotal of the FLV. Default 0x666666
public function get downloadProgressBarColor():uint public function set downloadProgressBarColor(value:uint):void| height | property |
height:Number[override] Accessor for the height of the entire control bar. If you set this value before or after the control bar has been constructed it will automatically update all elements of the control bar. This property will not affect the height of each individual control within the control bar. Default 30
public function get height():Number public function set height(value:Number):void| iconAlpha | property |
iconAlpha:NumberAccessor for the icon alpha that all the controls use. Default 1
public function get iconAlpha():Number public function set iconAlpha(value:Number):void| iconColor | property |
iconColor:uintAccessor for the icon color that all the controls use. Default 0xFFFFFF
public function get iconColor():uint public function set iconColor(value:uint):void| progressBarColor | property |
progressBarColor:uintAccessor for the scrub bar's progress bar color. The progress bar is different from the download progress bar in that it shows the current progress of what ever the control bar is controlling. Default 0x000000
public function get progressBarColor():uint public function set progressBarColor(value:uint):void| sliderTrackBackgroundColor | property |
sliderTrackBackgroundColor:uintAccessor for the color of the scrub bar's background. Default 0xFFFFFF
public function get sliderTrackBackgroundColor():uint public function set sliderTrackBackgroundColor(value:uint):void| strokeAlpha | property |
strokeAlpha:NumberAccessor for the stroke alpha of the control bar and all the controls. Default 0.5
public function get strokeAlpha():Number public function set strokeAlpha(value:Number):void| strokeColor | property |
strokeColor:uintAccessor for the stroke color of the control bar and all the controls. Default 0xFFFFFF
public function get strokeColor():uint public function set strokeColor(value:uint):void| width | property |
width:Number[override] Accessor for the width of the entire control bar. If you set this value before or after the control bar has been constructed it will automatically update all elements of the control bar. Default 360
public function get width():Number public function set width(value:Number):void| ControlBar | () | Constructor |
public function ControlBar()
| addControl | () | method |
public function addControl(value:BaseComponent):voidUse this method to add a single instantiated BaseComponent Control to the Component. You can add a single item at anytime.
Parameters
value:BaseComponent — Takes an instantiated BaseComponent Controls
|
| addControls | () | method |
public function addControls(value:Array):voidUse this method to add and Array of already instantiated BaseComponent Controls to the Component at one time. The order of the controls in the Array will determine the layout of them. If you wish to add a space or spaces in your control bar between controls refer to the FlexibleSpacer control to do so
Parameters
value:Array — Takes an array of already instantiated BaseComponent Controls
|
| getControl | () | method |
public function getControl(type:String):BaseComponentUse this method to get a reference to the BaseComponent Control after it has been added to the control bar. You will find all the string constants in the ControlType.as class.
Parameters
type:String — ControlType string constant.
|
BaseComponent — |