PlayBarThumb

Kind of class:class
Inherits from:MovieClip
Author:Andrew Guldman
Classpath:mx.controls.streamingmedia.PlayBarThumb
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


Constructor
Instance properties
Instance methods
Event handlers

Constructor

PlayBarThumb

function PlayBarThumb (
)

The original controllerPolicy setting

Instance properties

_dragging

private _dragging:Boolean
(read)

Are we dragging the thumb?

_enabled

private _enabled:Boolean
(read)

_pauseId

private _pauseId:Number
(read)

Id of the interval used to pause playback

_playBar

private _playBar:PlayBar
(read)

The play bar with which this thumb is associated

_wasPlaying

private _wasPlaying:Boolean
(read)

Was the media playing before they dragged the playhead?

enabled

enabled:Boolean
(read,write)

Instance methods

handleMouseMove

private function handleMouseMove (
) : Void

Pause playback after a pause
private function delayedPause():Void
{
clearInterval(_pauseId);
_pauseId = null;
_playBar.getController().broadcastEvent("click", "pause");
}

handlePress

function handlePress (
) : Void

Process a mouse click on the clip. Start dragging the thumb
on the play bar.

handleRelease

function handleRelease (
) : Void

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

handleReleaseOutside

function handleReleaseOutside (
) : Void

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

init

private function init (
) : Void

Initialize the clip.

isScrubbing

function isScrubbing (
) : Boolean

Is the thumb being dragged?

isVertical

private function isVertical (
) : Boolean

startThumbDrag

private function startThumbDrag (
) : Void

stopThumbDrag

private function stopThumbDrag (
) : Void

Event handlers

onUnload

function onUnload (
) : Void

Emergency backup. Never kill this clip and leave dragging mode on.