Flash CS3 Documentation |
|||
| ActionScript 2.0 Components Language Reference > Media components > Media.totalTime | |||
MediaDisplay, MediaPlayback.
Flash Player 7.
Flash MX Professional 2004.
myMedia.totalTime
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.
The following example sets the play time (in seconds) for the FLV media:
myMedia.totalTime = 151;
Flash CS3