MovieClip +--mx.controls.streamingmedia.LoadBar
The load bar that indicates how much of the streaming media has been loaded.
_background, _border, _controller, _fill_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 LoadBar()
private _controller:MediaControllerprivate _background:MovieClipprivate _border:MovieClipprivate _fill:MovieClippublic function getCompletionPercentage():NumberGet the completion percentage.
public function setCompletionPercentage(aPercentage:Number):VoidSet the completion percentage.
public function draw(size:Number):VoidDraw the load bar.
- Parameters
sizeThe height or width at which to draw the load bar. OPTIONAL. If omitted, the load bar will be drawn at its standard height or width.
private function getActualHeight():NumberThis "actual" functions are necessary because the bar height animates when the controller expands and contracts in vertical position. We need the fill to animate accurately also.
public function xToPercent(x:Number):Number
- Parameters
xThe x coordinate of the thumb. Between 0 and (width - 2). - 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 0 and (width - 2).