Flash CS3 Documentation |
|||
| ActionScript 2.0 Components Language Reference > Media components > Media.playing | |||
MediaDisplay, MediaPlayback, MediaController.
Flash Player 7.
Flash MX Professional 2004.
myMedia.playing
Property; returns a Boolean value that indicates whether the media is playing (true) or paused (false). This property is read-only for the MediaDisplay and MediaPlayback components, and read/write for the MediaController component.
The following code determines if the media is playing or paused:
if(myMedia.playing == true){
some function;
}
Flash CS3