MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 532

Using components
Hide thumbs Also See for FLASH MX 2004-USING COMPONENTS:
Table of Contents

Advertisement

Description
Event; is generated continuously until media has completely downloaded. The
event object has the following properties:
A reference to the MediaDisplay or MediaPlayback instance.
target
The string
type
Example
The following example listens for progress:
var myProgressListener = new Object();
myProgressListener.progress = function(){
// Make lightMovieClip blink while progress is occurring
var lightVisible = lightMovieClip.visible;
lightMovieClip.visible = !lightVisible;
}
The following example
// Duration of delay before calling timeOut
var timeOut:Number = 3000;
// if timeOut has been reached, do this:
function callback(arg) {
trace(arg);
}
// Listen for progress
var myListener:Object = new Object();
myListener.progress = function(evt) {
setInterval(callback, timeOut, "Experiencing Network Delay");
};
md.addEventListener("progress", myListener);
Media.removeAllCuePoints()
Applies to
MediaDisplay, MediaPlayback
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
myMedia.removeAllCuePoints()
Parameters
None.
.
"progress"
Media components (Flash Professional only)
Media.progress
533

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash mx

Table of Contents