User Guide

Media components (Flash Professional only) 519
// perform some function until playback ready
for (PlaybackLoad < 150) {
someFunction();
}
Media.bytesTotal
Applies to
MediaDisplay, MediaPlayback
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
myMedia.bytesTotal
Description
Read-only property; the number of bytes to be loaded into the MediaPlayback or MediaDisplay
component. The default value is
undefined.
Example
The following example tells the user the size of the media to be streamed:
myTextField.text = myMedia.bytesTotal;
Media.change
Applies to
MediaDisplay, MediaPlayback
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
listenerObject = new Object();
listenerObject.change = function(eventObject){
// insert your code here
}
myMedia.addEventListener("change", listenerObject)
Description
Event; broadcast by the MediaDisplay and MediaPlayback components while the media is
playing. The percentage complete can be retrieved from the component instance.