User Guide

Media.change 859
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.
When the event is triggered, it automatically passes an event object (
eventObject) to the
handler. Each event object has properties that contain information about the event. You can
use these properties to write code that handles the event. The
Media.change events event
object has two additional properties:
target A reference to the broadcasting object.
type The string "change", which indicates the type of event.
For more information, see “EventDispatcher class” on page 499.