Media class (Flash Professional only)
Inheritance
MovieClip >
ActionScript Class Names
mx.controls.MediaPlayback
Each component class has a
available only for the class itself. The
of the component. To access this property, use the following code:
trace(mx.controls.MediaPlayback.version);
Note: The code
trace(myMediaInstance.version);
Method summary for the Media class
The following table lists methods of the Media class.
Method
Media.addCuePoint()
Media.associateController()
Media.associateDisplay()
Media.displayFull()
Media.displayNormal()
Media.getCuePoint()
Media.pause()
Media.play()
Media.removeAllCuePoints()
Media.removeCuePoint()
Media.setMedia()
Media.stop()
510
Chapter 6: Components Dictionary
UIObject class
>
UIComponent class
mx.controls.MediaController, mx.controls.MediaDisplay,
property, which is a class property. Class properties are
version
property returns a string that indicates the version
version
Components
Description
MediaDisplay,
Adds a cue point object to the
MediaPlayback
component instance.
MediaDisplay
Associates a MediaDisplay instance with a
MediaController instance.
MediaController Associates a MediaController instance with a
MediaDisplay instance.
MediaPlayback
Converts the component instance to full-screen
playback mode.
MediaPlayback
Converts the component instance back to its
original screen size.
MediaDisplay,
Returns a cue point object.
MediaPlayback
MediaDisplay,
Pauses the playhead at its current location in the
MediaPlayback
media Timeline.
MediaDisplay,
Plays the media associated with the component
MediaPlayback
instance at a given starting point.
MediaDisplay,
Deletes all cue point objects associated with a
MediaPlayback
given component instance.
MediaDisplay,
Deletes a specified cue point associated with a
MediaPlayback
given component instance.
MediaDisplay,
Sets the media type and path to the specified
MediaPlayback
media type.
MediaDisplay,
Stops the playhead and moves it to position 0,
MediaPlayback
which is the beginning of the media.
> Media
returns
.
undefined
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?
Questions and answers