MovieClip +--mx.controls.streamingmedia.PlayBar
The load bar that indicates how much of the streaming media has been loaded.
_controller, _darkenText, _hilite, _statusTextField, _textPulseTime, _thumb, _timeTextField, _tray, ACTIVE_PULSE_PORTION, enabled, PAUSED_ID, PULSE_DURATION, STREAMING_ID, TEXT_ALPHA_DARK, TEXT_ALPHA_LIGHT_alpha, _currentframe, _droptarget, _focusrect, _framesloaded, _height, _lockroot, _name, _parent, _quality, _rotation, _soundbuftime, _target, _totalframes, _url, _visible, _width, _x, _xmouse, _xscale, _y, _ymouse, _yscale, enabled, focusEnabled, hitArea, tabChildren, tabEnabled, tabIndex, tooltipText, trackAsMenu, useHandCursornew PlayBar()
static private TEXT_ALPHA_DARK:Numberstatic private TEXT_ALPHA_LIGHT:Numberstatic private PULSE_DURATION:Numberstatic private ACTIVE_PULSE_PORTION:Numberstatic private STREAMING_ID:Stringstatic private PAUSED_ID:Stringprivate _controller:MediaControllerprivate _thumb:PlayBarThumbprivate _hilite:MovieClipprivate _trayprivate _statusTextField:TextFieldprivate _timeTextField:TextFieldprivate _darkenText:Booleanprivate _textPulseTime:Numberpublic enabled:Booleanpublic function getCompletionPercentage():NumberSet the completion percentage.
public function setCompletionPercentage(aPercentage:Number):VoidSet the completion percentage.
public function setIsPlaying(isPlaying:Boolean):VoidLet the playBar know if it is playing. Update the status text.
public function getController():MediaController
- Return
- The controller associated with the play bar.
public function xToPercent(x:Number):Number
- Parameters
xThe x coordinate of the thumb. Between -3 and (width - 6). - Return
- The percent complete. Between 0 and 100.
public function percentToX(percent:Number):Number
- Parameters
percentThe percent complete. Between 0 and 100. - Return
- The x coordinate of the thumb. Between -3 and (width - 6).
public function yToPercent(y:Number):Number
- Parameters
yThe y coordinate of the thumb. Between -3 and (height - 6). - Return
- The percent complete. Between 0 and 100.