Main Page | Packages | Class Tree | Index | Help

mx.controls.streamingmedia

class LoadBar

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


class LoadBar
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

Constructor

public
LoadBar ( )


Method Summary

public
draw ( size: Number ): Void
Draw the load bar.

public
getClosedHeight ( ): Number


public
getCompletionPercentage ( ): Number
Get the completion percentage.

public
getHeight ( ): Number


public
getOpenHeight ( ): Number


public
getWidth ( ): Number


public
percentToX ( percent: Number ): Number


public
percentToY ( percent: Number ): Number


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

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



Constructor Documentation

LoadBar

public function LoadBar()

Method Documentation

draw

public function draw(size: Number): Void
Draw the load bar.

Parameters:
size
The 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.

getClosedHeight

public function getClosedHeight(): Number

getCompletionPercentage

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

getHeight

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

getOpenHeight

public function getOpenHeight(): Number

getWidth

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

percentToX

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

percentToY

public function percentToY(percent: Number): Number
Parameters:
percent
The percent complete. Between 0 and 100.
Returns:
The y coordinate of the fill bar. Between 0 and (height - 2).

setCompletionPercentage

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

xToPercent

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

yToPercent

public function yToPercent(y: Number): Number
Parameters:
y
The y coordinate of the fill bar. Between 0 and (height - 2).
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