642
Chapter 7: ActionScript for Flash
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 listener object that was added using
MovieClipLoader.addListener()
.
target_mc
A movie clip loaded by a
MovieClipLoader.loadClip()
method. This parameter
is optional.
loadedBytes
The number of bytes that had been loaded when the listener was invoked.
totalBytes
The total number of bytes in the file being loaded.
Returns
Nothing.
Description
Listener; invoked every time the loading content is written to disk during the loading process
(that is, between
MovieClipLoader.onLoadStart
and
MovieClipLoader.onLoadComplete
).
You can use this method to display information about the progress of the download, using the
loadedBytes
and
totalBytes
parameters.
The value for
target_mc
identifies the movie clip this call is being made for. This is useful if you
are loading multiple files with the same set of listeners. This optional parameter is passed to your
ActionScript.
Summary of Contents for FLEX
Page 1: ...Flex ActionScript Language Reference ...
Page 8: ......
Page 66: ...66 Chapter 2 Creating Custom Classes with ActionScript 2 0 ...
Page 76: ......
Page 133: ...break 133 See also for for in do while while switch case continue throw try catch finally ...
Page 135: ...case 135 See also break default strict equality switch ...
Page 146: ...146 Chapter 5 ActionScript Core Language Elements See also break continue while ...
Page 808: ...808 Chapter 7 ActionScript for Flash ...
Page 810: ...810 Appendix A Deprecated Flash 4 operators ...
Page 815: ...Other keys 815 Num Lock 144 186 187 _ 189 191 192 219 220 221 222 Key Key code ...
Page 816: ...816 Appendix B Keyboard Keys and Key Code Values ...
Page 822: ...822 Index ...