MovieClip
+--mx.core.UIObject
+--mx.core.UIComponent
+--mx.controls.MediaPlaybackICuePointHolder 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, volumeclipParameters, 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, useHandCursornew MediaPlayback()
static symbolName:Stringstatic symbolOwner:ObjectclassName:StringclipParameters:Objectstatic private TOP_CONTROL_POSITION:Stringstatic private BOTTOM_CONTROL_POSITION:Stringstatic private LEFT_CONTROL_POSITION:Stringstatic private RIGHT_CONTROL_POSITION:Stringstatic private H_BORDER:Numberstatic private V_BORDER:Numberpublic fps:Numberprivate _mediaType:Stringprivate _contentPath:Stringprivate _totalTime:Numberprivate _autoSize:Booleanprivate _aspectRatio:Booleanprivate _autoPlay:Booleanprivate _controllerPolicy:Stringpublic initCuePointNames:Arraypublic initCuePointTimes:Arrayprivate _display:MediaDisplayprivate _controller:MediaControllerprivate _deadPreview:MovieClipprivate _chrome:Chromeprivate _controlPlacement:Stringprivate _enabled:Booleanprivate _settingMedia:Booleanpublic autoSize:Booleanpublic aspectRatio:Booleanpublic autoPlay:Booleanpublic playheadTime:Numberpublic contentPath:Stringpublic volume:Numberpublic 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:Stringpublic totalTime:Numberpublic cuePoints:Arraypublic 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:Stringpublic controlPlacement:StringThe position of the controls relative to the display component.
public enabled:Booleanprivate function initializeParameters():VoidCreate default values for absent parameters
function draw(Void):VoidDraw the component. This is called upon initialization and when the component is invalidated.
private function drawFLVController():VoidPosition the controller for an FLV player. The placement is dictated by the controlPlacement member.
public function handleEvent(ev):VoidHandle 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):VoidPlay the media starting at the specified starting point. If the media hasn't yet been loaded, load it.
- Parameters
startingPointThe 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):VoidSet 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
pointNameThe 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):VoidAdd the given cue point.
- Parameters
public function removeCuePoint(aCuePoint:CuePoint):VoidRemove the given cue point.
- Parameters
aCuePointThe 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):Voidpublic function displayFull():VoidDisplay 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.