MediaConfig

Kind of class:class
Inherits from:none
Author:Andrew Guldman
Classpath:mx.controls.streamingmedia.config.MediaConfig
File last modified:Tuesday, 18 December 2007, 15:44:38
This is a singleton class whose static members dictate the configuration
of the streaming media configuration UI's.

Summary


Class properties
Class methods
  • useMs : Void
  • isMs : Boolean
  • getFps : Number
  • setFps (anFps:Number) : Void
  • getFrameFps : Number
    • Activate the last numeric frame value.
  • activateFrameFps : Void
    • Activate the last numeric frame value.
  • createStyleSheet (type:String) : String
    • Create the indicated stylesheet and put it in the global list.
  • decomposeSeconds (seconds:Number) : Array
    • Convert a number of seconds into an array of h, m, s, ms values
  • composeSeconds (h:Number, m:Number, s:Number, ms:Number) : Number
    • Convert hours, minutes, seconds, and ms into seconds.
  • decomposeSecondsToFrames (seconds:Number, fps:Number) : Array
  • composeSecondsFromFrames (h:Number, m:Number, s:Number, f:Number, fps:Number) : Number
  • setup : Void
    • This code is run on frame 1 of the main timeline to set up the
  • processPreload : Void
    • This code is run from the frame after the "preload" frame of the

Class properties

_fps

static private _fps
(read)

Frames per second value for the config UI (or "ms" for milliseconds)

_frameFps

static private _frameFps:Number
(read)

fps, without the "ms" option. Used to initialize _fps when frames
display is selected.

cuePointEditor

static cuePointEditor:CuePointEditor
(read)

The cuepoint editor clip. The editor will register itself when
it initializes.

mode

static mode:String = "display"
(read)

MS_FPS

static MS_FPS = "ms"
(read)

FPS value that indicates the user wants to specify milliseconds

resizeListener

static private resizeListener:Object
(read)

Listener object for stage resize events.

SEC_IN_HOUR

static private SEC_IN_HOUR:Number = 3600
(read)

SEC_IN_MINUTE

static private SEC_IN_MINUTE:Number = 60
(read)

testing

static testing:Boolean = false
(read)

Class methods

activateFrameFps

static function activateFrameFps (
) : Void

Activate the last numeric frame value.

composeSeconds

static function composeSeconds (
h:Number, m:Number, s:Number, ms:Number) : Number

Convert hours, minutes, seconds, and ms into seconds.

composeSecondsFromFrames

static function composeSecondsFromFrames (
h:Number, m:Number, s:Number, f:Number, fps:Number) : Number

createStyleSheet

static function createStyleSheet (
type:String) : String

Create the indicated stylesheet and put it in the global list.
Parameters:
type:
The type of stylesheet. Supported options are
"normal", "title", "big", and "input".
Returns:
  • The name of the stylesheet to use for the config ui.

decomposeSeconds

static function decomposeSeconds (
seconds:Number) : Array

Convert a number of seconds into an array of h, m, s, ms values

decomposeSecondsToFrames

static function decomposeSecondsToFrames (
seconds:Number, fps:Number) : Array

getFps

static function getFps (
) : Number

getFrameFps

static function getFrameFps (
) : Number

Activate the last numeric frame value.

isMs

static function isMs (
) : Boolean

processPreload

static function processPreload (
) : Void

This code is run from the frame after the "preload" frame of the
main timeline. It makes sure that _root.xch is loaded, then
progresses to the proper frame once it has.

setFps

static function setFps (
anFps:Number) : Void

setup

static function setup (
) : Void

This code is run on frame 1 of the main timeline to set up the
SWF.

useMs

static function useMs (
) : Void