User Guide
522 Chapter 6: Components Dictionary
Media.contentPath
Applies to
MediaDisplay, MediaPlayback
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
myMedia.contentPath
Description
Property; a string that holds the relative path and filename of the media to be streamed and/or
played. Setting the
contentPath property is equivalent to calling the Media.setMedia()
method without specifying a
mediaType parameter. When no mediaType parameter is set with
Media.setMedia(), the default type is FLV. The default value of the contentPath property is
undefined.
Example
The following example displays the name of the media playing in a text box:
myTextField.text = myMedia.contentPath;
See also
Media.setMedia()
Media.controllerPolicy
Applies to
MediaController, MediaPlayback
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
myMedia.controllerPolicy
Description
Property; determines whether the MediaController component (or the controller subcomponent
within the MediaPlayback component) is hidden when instantiated and only appears when the
user moves the mouse over the controller’s collapsed state.