Main Page | Packages | Class Tree | Index | Help

mx.controls.streamingmedia

class MiniPlayBar

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


class MiniPlayBar
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
MiniPlayBar ( )
Constructor.

Method Summary

public
draw ( h: Number ): Void
Draw the play bar.

public
getActualHeight ( ): Number


public
getCompletionPercentage ( ): Number
Set the completion percentage.

public
getController ( ): MediaController


public
getHeight ( ): Number


public
getWidth ( ): Number


public
isVertical ( ): Boolean


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

MiniPlayBar

public function MiniPlayBar()
Constructor.


Method Documentation

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.

getActualHeight

public function getActualHeight(): Number

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

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 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 thumb. Between 1 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 thumb. Between 1 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