PlayPauseButton
| Kind of class: | class |
|---|---|
| Inherits from: | MovieClip |
| Author: | Andrew Guldman |
| Classpath: | mx.controls.streamingmedia.PlayPauseButton |
| File last modified: | Tuesday, 18 December 2007, 15:44:38 |
The PlayPauseButton control contains an instance of a play button and
a pause button. When one is clicked, the other is displayed.
a pause button. When one is clicked, the other is displayed.
Summary
Constructor
Instance properties
- _playPauseButton : Button
- The button
- _controller : MediaController
- The controller containing this clip
- _isPlaying : Boolean
- Is the play button showing?
- enabled : Boolean
Instance methods
- init : Void
- Initialize the component.
- showPlayButton : Void
- Display the play button.
- showPauseButton : Void
- Display the pause button.
- assignIcon : Void
- Assign the icon based on whether the button is in play or pause mode
- click (ev:Object) : Void
- Click handler for the button
- playClick : Void
- Handle a click on the play button
- pauseClick : Void
- Handle a click on the pause button
Constructor
PlayPauseButton
function PlayPauseButton (
)
Constructor
Instance properties
_isPlaying
private _isPlaying:Boolean
(read)
Is the play button showing?
enabled
enabled:Boolean
(read,write)
Instance methods
assignIcon
private function assignIcon (
) : Void
Assign the icon based on whether the button is in play or pause mode
and whether it is enabled.
and whether it is enabled.
click
function click (
ev:Object) : Void
Click handler for the button
init
private function init (
) : Void
Initialize the component.
pauseClick
private function pauseClick (
) : Void
Handle a click on the pause button
playClick
private function playClick (
) : Void
Handle a click on the play button
showPauseButton
function showPauseButton (
) : Void
Display the pause button.
showPlayButton
function showPlayButton (
) : Void
Display the play button.