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
Summary of Contents for FLEX-FLEX ACTIONSCRIPT LANGUAGE
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...