Media.contentpath - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

Example
The following example uses an object listener to determine when the media has
finished playing:
var myListener:Object = new Object();
myListener.complete = function(eventObj:Object) {
trace("media is Finished");
};
myMedia.addEventListener("complete", myListener);

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
property is equivalent to calling the
contentPath
Media.setMedia()
method without specifying a
parameter. When no
parameter is set
mediaType
mediaType
with
, the default type is FLV. The default value of the
Media.setMedia()
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()
862
Media components (Flash Professional only)

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents