MovieClip +--mx.core.UIObject +--mx.core.UIComponent +--mx.controls.MediaPlayback
ICuePointHolder
MediaPlayback is a full-featured displayer and controller of streaming media. It plays FLV and MP3 files.
_aspectRatio
, _autoPlay
, _autoSize
, _chrome
, _contentPath
, _controller
, _controllerPolicy
, _controlPlacement
, _deadPreview
, _display
, _enabled
, _mediaType
, _settingMedia
, _totalTime
, aspectRatio
, autoPlay
, autoSize
, BOTTOM_CONTROL_POSITION
, bytesLoaded
, bytesTotal
, className
, clipParameters
, contentPath
, controllerPolicy
, controlPlacement
, cuePoints
, enabled
, fps
, H_BORDER
, initCuePointNames
, initCuePointTimes
, LEFT_CONTROL_POSITION
, mediaType
, mostRecentCuePoint
, mostRecentCuePointName
, mostRecentCuePointTime
, playheadTime
, playing
, preferredHeight
, preferredWidth
, RIGHT_CONTROL_POSITION
, symbolName
, symbolOwner
, TOP_CONTROL_POSITION
, totalTime
, V_BORDER
, volume
clipParameters
, drawFocus
, enabled
, focusEnabled
, focusManager
, focusTextField
, groupName
, height
, kStretch
, mergedClipParameters
, origBorderStyles
, origBorderValues
, popUp
, symbolName
, symbolOwner
, tabEnabled
, tabIndex
, width
__height
, __onUnload
, __width
, _color
, _endInit
, _id
, _maxHeight
, _maxWidth
, _minHeight
, _minWidth
, _preferredHeight
, _preferredWidth
, _tf
, _topmost
, addEventListener
, bottom
, buildDepthTable
, changeColorStyleInChildren
, changeTextStyleInChildren
, childrenCreated
, className
, clipParameters
, color
, createAccessibilityImplementation
, createChildAtDepth
, createClassChildAtDepth
, createEvent
, dispatchEvent
, embedFonts
, findNextAvailableDepth
, fontFamily
, fontSize
, fontStyle
, fontWeight
, handleEvent
, height
, idNames
, ignoreClassStyleDeclaration
, initProperties
, invalidateFlag
, left
, lineColor
, lineWidth
, marginLeft
, marginRight
, methodTable
, minHeight
, minWidth
, notifyStyleChangeInChildren
, removeEventListener
, right
, scaleX
, scaleY
, setStyle
, stylecache
, styleName
, symbolName
, symbolOwner
, tabEnabled
, textAlign
, textColorList
, textDecoration
, textIndent
, tfList
, top
, validateNow
, visible
, width
, x
, y
_alpha
, _currentframe
, _droptarget
, _focusrect
, _framesloaded
, _height
, _lockroot
, _name
, _parent
, _quality
, _rotation
, _soundbuftime
, _target
, _totalframes
, _url
, _visible
, _width
, _x
, _xmouse
, _xscale
, _y
, _ymouse
, _yscale
, enabled
, focusEnabled
, hitArea
, tabChildren
, tabEnabled
, tabIndex
, tooltipText
, trackAsMenu
, useHandCursor
new MediaPlayback()
static symbolName:String
static symbolOwner:Object
className:String
clipParameters:Object
static private TOP_CONTROL_POSITION:String
static private BOTTOM_CONTROL_POSITION:String
static private LEFT_CONTROL_POSITION:String
static private RIGHT_CONTROL_POSITION:String
static private H_BORDER:Number
static private V_BORDER:Number
public fps:Number
private _mediaType:String
private _contentPath:String
private _totalTime:Number
private _autoSize:Boolean
private _aspectRatio:Boolean
private _autoPlay:Boolean
private _controllerPolicy:String
public initCuePointNames:Array
public initCuePointTimes:Array
private _display:MediaDisplay
private _controller:MediaController
private _deadPreview:MovieClip
private _chrome:Chrome
private _controlPlacement:String
private _enabled:Boolean
private _settingMedia:Boolean
public autoSize:Boolean
public aspectRatio:Boolean
public autoPlay:Boolean
public playheadTime:Number
public contentPath:String
public volume:Number
public playing:Boolean [Read Only]
public preferredWidth:Number [Read Only]
public preferredHeight:Number [Read Only]
public bytesLoaded:Number [Read Only]
public bytesTotal:Number [Read Only]
public mediaType:String
public totalTime:Number
public cuePoints:Array
public mostRecentCuePoint:CuePoint [Read Only]
Retrieve the most recently fired cue point. Unbindable since binding cannot handle structures.
public mostRecentCuePointName:String [Read Only]
Retrieve the most recently fired cue point name.
public mostRecentCuePointTime:Number [Read Only]
Retrieve the most recently fired cue point time.
public controllerPolicy:String
public controlPlacement:String
The position of the controls relative to the display component.
public enabled:Boolean
private function initializeParameters():Void
Create default values for absent parameters
function draw(Void):Void
Draw the component. This is called upon initialization and when the component is invalidated.
private function drawFLVController():Void
Position the controller for an FLV player. The placement is dictated by the controlPlacement member.
public function handleEvent(ev):Void
Handle all the events broadcast by the display and controller components. Rebroadcast them. Special attention is paid to a "start" event from the display component. This component will listen to see when playback of the media starts. It will resize the video at that time.
public function play(startingPoint:Number):Void
Play the media starting at the specified starting point. If the media hasn't yet been loaded, load it.
- Parameters
startingPoint
The number of seconds into the media to start at. This is an optional parameter. If omitted, playing will occur at the current playhead position. @tiptext Plays the media from the given starting point @helpid 3476
public function setMedia(aUrl:String, aType:String):Void
Set both the url and the type in a single call.
public function getCuePoints():Array
- Return
- An array of CuePoint objects. All the CuePoints associated with this object. @tiptext Returns the cuePoint object @helpid 3474
public function getCuePoint(pointName:String):CuePoint
- Parameters
pointName
The name of the cue point to find. - Return
- The CuePoint associated with this object that has the given name.
public function addCuePoint(aName:String, aTime:Number):Void
Add the given cue point.
- Parameters
public function removeCuePoint(aCuePoint:CuePoint):Void
Remove the given cue point.
- Parameters
aCuePoint
The CuePoint to remove. @tiptext Delete a specific cuepoint associated with this instance @helpid 3479
public function addSecondChrome(theChrome:Chrome, closedHeight:Number, openHeight:Number, closedWidth:Number, openWidth:Number, fixedEnd:Boolean):Void
public function displayFull():Void
Display the player in full-screen mode. This makes the player occupy the entire Flash stage. It does *not* change the size of the Flash stage.