Media.progress
Applies to
MediaDisplay, MediaPlayback.
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
var listenerObject:Object = new Object();
listenerObject.progress = function(eventObj:Object) {
// ...
};
myMedia.addEventListener("progress", listenerObject);
Description
Event; is generated continuously until media has completely downloaded. The
event object has the following properties:
Media.progress
A reference to the MediaDisplay or MediaPlayback instance.
target
The string
type
"progress"
Example
The following example listens for progress:
var myProgressListener:Object = new Object();
myProgressListener.progress = function(eventObj:Object) {
// Make lightMovieClip blink while progress is occurring.
var lightVisible:Boolean = lightMovieClip.visible;
lightMovieClip.visible = !lightVisible;
};
.
Media.progress
875
Need help?
Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?
Questions and answers