Flash CS3 Documentation |
|||
| ActionScript 2.0 Components Language Reference > Media components > Media.contentPath | |||
MediaDisplay, MediaPlayback.
Flash Player 7.
Flash MX Professional 2004.
myMedia.contentPath
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.
The following example displays the name of the media playing in a text box:
myTextField.text = myMedia.contentPath;
Flash CS3