Flash CS3 Documentation |
|||
| ActionScript 2.0 Components Language Reference > Media components > Media.autoPlay | |||
MediaDisplay, MediaPlayback.
Flash Player 7.
Flash MX Professional 2004.
myMedia.autoPlay
Property; a Boolean value that determines whether the MediaPlayback or MediaDisplay instance should immediately start attempting to buffer and play. A true value indicates that the control buffers and plays at runtime; a false value indicates the control is stopped at runtime. This property depends on the contentPath and mediaType properties. If contentPath and mediaType are not set, no playback occurs at runtime. The default value is true.
The following example indicates that the control is not started when first loaded:
myMedia.autoPlay = false;
Media.contentPath, Media.mediaType
Flash CS3