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.
of the streaming media configuration UI's.
Summary
Class properties
- MS_FPS
- SEC_IN_MINUTE : Number
- SEC_IN_HOUR : Number
- testing : Boolean
- mode : String
- cuePointEditor : CuePointEditor
- The cuepoint editor clip.
- _fps
- _frameFps : Number
- fps, without the "ms" option.
- resizeListener : Object
- Listener object for stage resize events.
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.
display is selected.
cuePointEditor
The cuepoint editor clip. The editor will register itself when
it initializes.
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".
"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.
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.
SWF.
useMs
static function useMs (
) : Void