User Guide

MovieClip.getBounds() 575
Example
This example demonstrates how to hide the yellow rectangle around a specified movie clip
instance in a SWF file when it has focus in a browser window. Create three movie clips called
mc1_mc, mc2_mc, and mc3_mc, and add the following ActionScript:
mc1_mc._focusrect = true;
mc2_mc._focusrect = false;
mc3_mc._focusrect = true;
mc1_mc.onRelease = traceOnRelease;
mc3_mc.onRelease = traceOnRelease;
function traceOnRelease() {
trace(this._name);
}
Test the SWF file in a browser window. Give the SWF focus by clicking it in the browser window,
and press Tab to focus each instance. You will not be able to execute code for this movie clip in
the browser by pressing Enter or the Spacebar when
_focusrect is disabled.
See Also
_focusrect
MovieClip._framesloaded
Availability
Flash Player 4.
Usage
my_mc._framesloaded:Number
Description
Read-only property; the number of frames that have been loaded from a streaming SWF file. This
property is useful for determining whether the contents of a specific frame, and all the frames
before it, have loaded and are available locally in the browser. It is also useful for monitoring the
downloading of large SWF files. For example, you might want to display a message to users
indicating that the SWF file is loading until a specified frame in the SWF file has finished
loading.
See also
MovieClipLoader class
MovieClip.getBounds()
Availability
Flash Player 5.
Usage
my_mc.getBounds(targetCoordinateSpace:Object) : Object