VolumeControlHandle

Kind of class:class
Inherits from:MovieClip
Author:Andrew Guldman
Classpath:mx.controls.streamingmedia.VolumeControlHandle
File last modified:Tuesday, 18 December 2007, 15:44:38
The draggable thumb of the play bar that lets the user see and adjust
the current play head position.

Summary


Instance properties
Instance methods

Constructor

VolumeControlHandle

function VolumeControlHandle (
)

Constructor

Instance properties

_controller

private _controller:MediaController
(read)

The controller that the thumb sits in

_enabled

private _enabled:Boolean
(read)

Is it enabled?

_volumeControl

private _volumeControl:VolumeControl
(read)

The volume control with which this thumb is associated

enabled

enabled:Boolean
(read,write)

Instance methods

broadcastEvent

private function broadcastEvent (
) : Void

getRange

private function getRange (
) : Number

handleMouseMove

private function handleMouseMove (
) : Void

handlePress

function handlePress (
) : Void

Process a mouse click on the clip. Start dragging the thumb
on the track.

handleRelease

function handleRelease (
) : Void

The user released the mouse. Stop dragging my clip around.

handleReleaseOutside

function handleReleaseOutside (
) : Void

The user released the mouse. Stop dragging my clip around.

init

private function init (
) : Void

Initialize the clip.

isVertical

private function isVertical (
) : Boolean

setLoud

function setLoud (
) : Void

Put the thumb in loud position.

setMute

function setMute (
) : Void

Put the thumb in mute position.

setVolume

function setVolume (
aVolume:Number) : Void

Position the thumb according to the parameter volume.
Parameters:
aVolume:
Volume level between 0 and 100

startThumbDrag

private function startThumbDrag (
) : Void

stopThumbDrag

private function stopThumbDrag (
) : Void

volumeToX

private function volumeToX (
aVol:Number) : Number

xToVolume

private function xToVolume (
x:Number) : Number