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.
the current play head position.
Summary
Constructor
Instance properties
- _volumeControl : VolumeControl
- The volume control with which this thumb is associated
- _controller : MediaController
- The controller that the thumb sits in
- _enabled : Boolean
- Is it enabled?
- enabled : Boolean
Instance methods
- init : Void
- Initialize the clip.
- isVertical : Boolean
- setVolume (aVolume:Number) : Void
- Position the thumb according to the parameter volume.
- setMute : Void
- Put the thumb in mute position.
- setLoud : Void
- Put the thumb in loud position.
- handlePress : Void
- Process a mouse click on the clip.
- handleRelease : Void
- The user released the mouse.
- handleReleaseOutside : Void
- The user released the mouse.
- startThumbDrag : Void
- stopThumbDrag : Void
- handleMouseMove : Void
- broadcastEvent : Void
- xToVolume (x:Number) : Number
- volumeToX (aVol:Number) : Number
- getRange : Number
Constructor
VolumeControlHandle
function VolumeControlHandle (
)
Constructor
Instance properties
_enabled
private _enabled:Boolean
(read)
Is it enabled?
_volumeControl
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.
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