Class mx.controls.streamingmedia.PlayPauseButton

MovieClip
   +--mx.controls.streamingmedia.PlayPauseButton

Description

The PlayPauseButton control contains an instance of a play button and a pause button. When one is clicked, the other is displayed.

Field Index

_controller, _isPlaying, _playPauseButton, enabled
Inherited from 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

Method Index

new PlayPauseButton()

assignIcon(), click(), init(), pauseClick(), playClick(), showPauseButton(), showPlayButton()
Inherited from 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()

Constructor Detail

PlayPauseButton

public function PlayPauseButton()
Constructor

Field Detail

_playPauseButton

private _playPauseButton:Button

_controller

private _controller:MediaController

_isPlaying

private _isPlaying:Boolean

enabled

public enabled:Boolean

Method Detail

init

private function init():Void
Initialize the component.

showPlayButton

public function showPlayButton():Void
Display the play button.

showPauseButton

public function showPauseButton():Void
Display the pause button.

assignIcon

private function assignIcon():Void
Assign the icon based on whether the button is in play or pause mode and whether it is enabled.

click

public function click(ev:
Object):Void
Click handler for the button

playClick

private function playClick():Void
Handle a click on the play button

pauseClick

private function pauseClick():Void
Handle a click on the pause button