Class mx.controls.streamingmedia.MiniPlayBar

MovieClip
   +--mx.controls.streamingmedia.MiniPlayBar

Description

The load bar that indicates how much of the streaming media has been loaded.

Field Index

_controller, _hilite, _thumb, _tray
Inherited from MovieClip
_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, useHandCursor

Method Index

new MiniPlayBar()

draw(), getActualHeight(), getCompletionPercentage(), getController(), getHeight(), getWidth(), init(), isVertical(), percentToX(), percentToY(), setCompletionPercentage(), xToPercent(), yToPercent()
Inherited from MovieClip
attachAudio(), attachMovie(), beginFill(), beginGradientFill(), clear(), createEmptyMovieClip(), createTextField(), curveTo(), duplicateMovieClip(), endFill(), getBounds(), getBytesLoaded(), getBytesTotal(), getDepth(), getInstanceAtDepth(), getNextHighestDepth(), getSWFVersion(), getTextSnapshot(), getURL(), globalToLocal(), gotoAndPlay(), gotoAndStop(), hitTest(), lineStyle(), lineTo(), loadMovie(), loadVariables(), localToGlobal(), moveTo(), nextFrame(), onData(), onDragOut(), onDragOver(), onEnterFrame(), onKeyDown(), onKeyUp(), onKillFocus(), onLoad(), onMouseDown(), onMouseMove(), onMouseUp(), onPress(), onRelease(), onReleaseOutside(), onRollOut(), onRollOver(), onSetFocus(), onUnload(), play(), prevFrame(), removeMovieClip(), setMask(), startDrag(), stop(), stopDrag(), swapDepths(), unloadMovie(), valueOf()

Constructor Detail

MiniPlayBar

public function MiniPlayBar()
Constructor.

Field Detail

_controller

private _controller:MediaController

_thumb

private _thumb:MovieClip

_hilite

private _hilite:MovieClip

_tray

private _tray

Method Detail

init

private function init():Void
Initialize the component.

isVertical

public function isVertical():
Boolean

getCompletionPercentage

public function getCompletionPercentage():
Number
Set the completion percentage.

setCompletionPercentage

public function setCompletionPercentage(aPercentage:
Number):Void
Set the completion percentage.

getController

public function getController():
MediaController
Return
The controller associated with the play bar.

draw

public function draw(h:
Number):Void
Draw the play bar.
Parameters
h The height at which to draw the bar. OPTIONAL. If omitted, the bar will be drawn at its standard height. This is only used if the load bar is in vertical orientation. It is ignored for horizontal bars.

getWidth

public function getWidth():
Number
Return
The width of the play bar

getHeight

public function getHeight():
Number
Return
The height of the play bar

getActualHeight

public function getActualHeight():
Number

xToPercent

public function xToPercent(x:
Number):Number
Parameters
x The x coordinate of the thumb. Between 0 and (width - 2).
Return
The percent complete. Between 0 and 100.

percentToX

public function percentToX(percent:
Number):Number
Parameters
percent The percent complete. Between 0 and 100.
Return
The x coordinate of the thumb. Between 0 and (width - 2).

yToPercent

public function yToPercent(y:
Number):Number
Parameters
y The y coordinate of the thumb. Between 1 and (Height - 2).
Return
The percent complete. Between 0 and 100.

percentToY

public function percentToY(percent:
Number):Number
Parameters
percent The percent complete. Between 0 and 100.
Return
The y coordinate of the thumb. Between 1 and (Height - 2).