MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 642

Actionscript language reference
Table of Contents

Advertisement

var image_mcl:MovieClipLoader = new MovieClipLoader();
image_mcl.addListener(mclListener);
image_mcl.loadClip("http://www.macromedia.com/images/shared/product_boxes/
112x112/box_studio_112x112.jpg", image_mc);
See also
MovieClipLoader.onLoadStart
MovieClipLoader.onLoadProgress
Availability
Flash Player 7.
Usage
listenerObject.onLoadProgress =
function([target_mc:Object [, loadedBytes:Number [, totalBytes:Number ] ] ]
) {
// your statements here
}
Parameters
listenerObject
A movie clip loaded by a
target_mc
is optional.
loadedBytes
The total number of bytes in the file being loaded.
totalBytes
Returns
Nothing.
Description
Listener; invoked every time the loading content is written to disk during the loading process
(that is, between
You can use this method to display information about the progress of the download, using the
and
loadedBytes
The value for
target_mc
are loading multiple files with the same set of listeners. This optional parameter is passed to your
ActionScript.
642
Chapter 7: ActionScript for Flash
A listener object that was added using
The number of bytes that had been loaded when the listener was invoked.
MovieClipLoader.onLoadStart
parameters.
totalBytes
identifies the movie clip this call is being made for. This is useful if you
MovieClipLoader.addListener()
MovieClipLoader.loadClip()
and
MovieClipLoader.onLoadComplete
method. This parameter
).
.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flex

Table of Contents