User Guide

Media.volume 881
Description
Property; the total length of the media, in seconds. Since the FLV file format does not provide
its play time to a media component until it is completely loaded, you must input
Media.totalTime manually so that the playbar can accurately reflect the actual play time of
the media. The default value for MP3 files is the play time of the media. For FLV files, the
default value is
undefined.
You cannot set this property for MP3 files, because the information is contained in the
Sound object.
Example
The following example sets the play time (in seconds) for the FLV media:
myMedia.totalTime = 151;
Media.volume
Applies to
MediaDisplay, MediaPlayback.
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
myMedia.volume
Description
Property; stores an integer that indicates the volume setting, which can range from 0 to 100.
The default value is 75.
Example
The following example sets the maximum volume for media playback:
myMedia.volume = 100;
See also
Media.volume, Media.pause()