Edition
Flash MX Professional 2004.
Usage
myMedia.stop()
Parameters
None.
Returns
Nothing.
Description
Method; stops the playhead and moves it to position 0, which is the beginning of the media.
Example
The following code stops the playhead and moves it to position 0:
myMedia.stop()
Media.totalTime
Applies to
MediaDisplay, MediaPlayback
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
myMedia.totalTime
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
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
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;
536
Chapter 6: Components Dictionary
Media.totalTime
.
undefined
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?