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.

Summary


Constructor
Instance properties
Instance methods

Constructor

FullScreenToggle

function FullScreenToggle (
)

Constructor

Instance properties

_isFull

private _isFull:Boolean
(read)

Is the display in full screen mode?

_maximize

private _maximize:FullScreenToggleControl
(read)

_minimize

private _minimize:FullScreenToggleControl
(read)

_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)

_player

private _player:MediaPlayback
(read)

The player with which this toggler is associated

_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.
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.
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

function getPlayer (

getScrollViewAncestor

private function getScrollViewAncestor (
anMC:MovieClip) : ScrollView

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.