Main Page | Packages | Class Tree | Index | Help

mx.controls.streamingmedia

class PlayBar

Object
  |
  +--MovieClip
        |
        +--mx.controls.streamingmedia.PlayBar


class PlayBar
extends MovieClip

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


Author:
Andrew Guldman


Fields inherited from class 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

Fields inherited from class Object

__proto__, constructor, prototype

Property Summary

public
enabled: Boolean (read, write)


Constructor

public
PlayBar ( )
Constructor.

Method Summary

public
draw ( ): Void
Draw the play bar.

public
getCompletionPercentage ( ): Number
Set the completion percentage.

public
getController ( ): MediaController


public
getHeight ( ): Number


public
getWidth ( ): Number


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

public
isVertical ( ): Boolean


public
percentToX ( percent: Number ): Number


public
percentToY ( percent: Number ): Number


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

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

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

public
updateHiliteToMatchThumb ( ): Void


public
xToPercent ( x: Number ): Number


public
yToPercent ( y: Number ): Number


Methods inherited from class 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

Methods inherited from class Object

addProperty, hasOwnProperty, isPropertyEnumerable, isPrototypeOf, registerClass, toLocaleString, toString, unwatch, valueOf, watch



Property Documentation

enabled

public enabled: Boolean (read, write)

Constructor Documentation

PlayBar

public function PlayBar()
Constructor.


Method Documentation

draw

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

getCompletionPercentage

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

getController

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

getHeight

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

getWidth

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

isScrubbing

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

isVertical

public function isVertical(): Boolean

percentToX

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

percentToY

public function percentToY(percent: Number): Number
Parameters:
percent
The percent complete. Between 0 and 100.
Returns:
The y coordinate of the thumb. Between -3 and (height - 6).

setCompletionPercentage

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

setIsPlaying

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

Update the status text.

setTime

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

updateHiliteToMatchThumb

public function updateHiliteToMatchThumb(): Void

xToPercent

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

yToPercent

public function yToPercent(y: Number): Number
Parameters:
y
The y coordinate of the thumb. Between -3 and (height - 6).
Returns:
The percent complete. Between 0 and 100.


The documentation was generated from the following file:


Copyright © 1997-2005 Macromedia, Inc. All rights reserved. Generated with AS2Doc