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 (
) to the
eventObject
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
event's event
Media.change
object has two additional properties:
A reference to the broadcasting object.
target
The string
, which indicates the type of event.
type
"change"
For more information, see
"EventDispatcher class" on page
499.
Media.change
859
Need help?
Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?
Questions and answers