FullScreenToggle
| Kind of class: | class |
|---|---|
| Inherits from: | MovieClip |
| Author: | Andrew Guldman |
| Classpath: | mx.controls.streamingmedia.FullScreenToggle |
| File last modified: | Tuesday, 18 December 2007, 15:44:38 |
FullScreenToggle toggles the display of the streaming media player between
normal and fullscreen.
normal and fullscreen.
Summary
Constructor
Instance properties
- _isFull : Boolean
- Is the display in full screen mode?
- _player : MediaPlayback
- The player with which this toggler is associated
- _maximize : FullScreenToggleControl
- _minimize : FullScreenToggleControl
- _originalPlayerX : Number
- Original position of the player control
- _originalPlayerY : Number
- _originalPlayerWidth : Number
- _originalPlayerHeight : Number
- _originalAutosize : Boolean
- Was autosize originally on?
- _waited : Boolean
- Wait an extra frame before sizing bars
Instance methods
- init
- isFullScreen : Boolean
- displayFull (noAction:Boolean) : Void
- Make the display full screen.
- getContainerInfo : Object
- Determine if the player is contained in a ScrollView.
- getScrollViewAncestor (anMC:MovieClip) : ScrollView
- delayedBarRefresh : Void
- displayNormal (noAction:Boolean) : Void
- Make the display normal.
- toggleDisplay : Void
- Toggle the display between full screen and normal mode.
- getAllToggles : Array
- getOtherToggles : Array
- getPlayer : MediaPlayback
- getEnabled : Boolean
- setEnabled (is:Boolean) : Void
Constructor
FullScreenToggle
function FullScreenToggle (
)
Constructor
Instance properties
_isFull
private _isFull:Boolean
(read)
Is the display in full screen mode?
_maximize
_minimize
_originalAutosize
private _originalAutosize:Boolean
(read)
Was autosize originally on?
_originalPlayerHeight
private _originalPlayerHeight:Number
(read)
_originalPlayerWidth
private _originalPlayerWidth:Number
(read)
_originalPlayerX
private _originalPlayerX:Number
(read)
Original position of the player control
_originalPlayerY
private _originalPlayerY:Number
(read)
_waited
private _waited:Boolean
(read)
Wait an extra frame before sizing bars
Instance methods
delayedBarRefresh
private function delayedBarRefresh (
) : Void
displayFull
function displayFull (
noAction:Boolean) : Void
Make the display full screen. If the component is contained in a
ScrollView it will be displayed in the ScrollView.
ScrollView it will be displayed in the ScrollView.
Parameters:
noAction:
True: don't act on the player. False: do.
displayNormal
function displayNormal (
noAction:Boolean) : Void
Make the display normal.
Parameters:
noAction:
True: don't act on the player. False: do.
getAllToggles
private function getAllToggles (
) : Array
Returns:
- All the toggles (including itself)
getContainerInfo
private function getContainerInfo (
) : Object
Determine if the player is contained in a ScrollView. If so, then
compile the information necessary to expand it to fill the scroll view.
If not, then provide the information to expand it to fill the
entire Flash stage.
compile the information necessary to expand it to fill the scroll view.
If not, then provide the information to expand it to fill the
entire Flash stage.
Returns:
- An object with the following properties:
container: The clip which will be filled
width: The target width of the zoomed player
height: The target height of the zoomed player
x: The x-coordinate at which the playback should be placed
y: The y-coordinate at which the playback should be placed
origin: Boolean -- position at the stage origin
getEnabled
function getEnabled (
) : Boolean
getOtherToggles
private function getOtherToggles (
) : Array
Returns:
- All the toggles except itself
getPlayer
getScrollViewAncestor
init
private function init (
)
isFullScreen
function isFullScreen (
) : Boolean
Returns:
- True if the display is full screen; false if not.
setEnabled
function setEnabled (
is:Boolean) : Void
toggleDisplay
function toggleDisplay (
) : Void
Toggle the display between full screen and normal mode.