Class mx.controls.streamingmedia.PlayBar

MovieClip
   +--mx.controls.streamingmedia.PlayBar

Description

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

Field Index

_controller, _darkenText, _hilite, _statusTextField, _textPulseTime, _thumb, _timeTextField, _tray, ACTIVE_PULSE_PORTION, enabled, PAUSED_ID, PULSE_DURATION, STREAMING_ID, TEXT_ALPHA_DARK, TEXT_ALPHA_LIGHT
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 PlayBar()

draw(), getCompletionPercentage(), getController(), getHeight(), getWidth(), init(), isScrubbing(), isVertical(), percentToX(), percentToY(), pulseText(), setCompletionPercentage(), setDarkText(), setIsPlaying(), setLightText(), setTime(), updateHiliteToMatchThumb(), 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

PlayBar

public function PlayBar()
Constructor.

Field Detail

TEXT_ALPHA_DARK

static private TEXT_ALPHA_DARK:Number

TEXT_ALPHA_LIGHT

static private TEXT_ALPHA_LIGHT:Number

PULSE_DURATION

static private PULSE_DURATION:Number

ACTIVE_PULSE_PORTION

static private ACTIVE_PULSE_PORTION:Number

STREAMING_ID

static private STREAMING_ID:String

PAUSED_ID

static private PAUSED_ID:String

_controller

private _controller:MediaController

_thumb

private _thumb:PlayBarThumb

_hilite

private _hilite:MovieClip

_tray

private _tray

_statusTextField

private _statusTextField:TextField

_timeTextField

private _timeTextField:TextField

_darkenText

private _darkenText:Boolean

_textPulseTime

private _textPulseTime:Number

enabled

public enabled:Boolean

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.

updateHiliteToMatchThumb

public function updateHiliteToMatchThumb():Void

setTime

public function setTime(aTime:
Number):Void
Set the current time in seconds

setIsPlaying

public function setIsPlaying(isPlaying:
Boolean):Void
Let the playBar know if it is playing. Update the status text.

getController

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

draw

public function draw():Void
Draw the play bar.

getWidth

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

getHeight

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

xToPercent

public function xToPercent(x:
Number):Number
Parameters
x The x coordinate of the thumb. Between -3 and (width - 6).
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 -3 and (width - 6).

yToPercent

public function yToPercent(y:
Number):Number
Parameters
y The y coordinate of the thumb. Between -3 and (height - 6).
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 -3 and (height - 6).

pulseText

private function pulseText():Void
Gently pulse the text fields

setDarkText

private function setDarkText():Void
Make the text fields dark

setLightText

private function setLightText():Void
Make the text fields light

isScrubbing

public function isScrubbing():
Boolean
Is the thumb being dragged?