Class mx.controls.streamingmedia.config.MediaConfig

mx.controls.streamingmedia.config.MediaConfig

Description

This is a singleton class whose static members dictate the configuration of the streaming media configuration UI's.

Field Index

_fps, _frameFps, cuePointEditor, mode, MS_FPS, resizeListener, SEC_IN_HOUR, SEC_IN_MINUTE, testing

Method Index

activateFrameFps(), composeSeconds(), composeSecondsFromFrames(), createStyleSheet(), decomposeSeconds(), decomposeSecondsToFrames(), getFps(), getFrameFps(), isMs(), processPreload(), setFps(), setup(), useMs()

Field Detail

MS_FPS

static public MS_FPS

SEC_IN_MINUTE

static private SEC_IN_MINUTE:Number

SEC_IN_HOUR

static private SEC_IN_HOUR:Number

testing

static public testing:Boolean

mode

static public mode:String

cuePointEditor

static public cuePointEditor:CuePointEditor

_fps

static private _fps

_frameFps

static private _frameFps:Number

resizeListener

static private resizeListener:Object

Method Detail

useMs

static public function useMs():Void

isMs

static public function isMs():
Boolean

getFps

static public function getFps():
Number

setFps

static public function setFps(anFps:
Number):Void

getFrameFps

static public function getFrameFps():
Number
Activate the last numeric frame value.

activateFrameFps

static public function activateFrameFps():Void
Activate the last numeric frame value.

createStyleSheet

static public 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".
Return
The name of the stylesheet to use for the config ui.

decomposeSeconds

static public function decomposeSeconds(seconds:
Number):Array
Convert a number of seconds into an array of h, m, s, ms values

composeSeconds

static public function composeSeconds(h:
Number, m:Number, s:Number, ms:Number):Number
Convert hours, minutes, seconds, and ms into seconds.

decomposeSecondsToFrames

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

composeSecondsFromFrames

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

setup

static public function setup():Void
This code is run on frame 1 of the main timeline to set up the SWF.

processPreload

static public 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.