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
Содержание FLEX
Страница 1: ...Flex ActionScript Language Reference ...
Страница 8: ......
Страница 66: ...66 Chapter 2 Creating Custom Classes with ActionScript 2 0 ...
Страница 76: ......
Страница 133: ...break 133 See also for for in do while while switch case continue throw try catch finally ...
Страница 135: ...case 135 See also break default strict equality switch ...
Страница 146: ...146 Chapter 5 ActionScript Core Language Elements See also break continue while ...
Страница 229: ...while 229 i 3 The following result is written to the log file 0 3 6 9 12 15 18 See also do while continue for for in ...
Страница 808: ...808 Chapter 7 ActionScript for Flash ...
Страница 810: ...810 Appendix A Deprecated Flash 4 operators ...
Страница 815: ...Other keys 815 Num Lock 144 186 187 _ 189 191 192 219 220 221 222 Key Key code ...
Страница 816: ...816 Appendix B Keyboard Keys and Key Code Values ...
Страница 822: ...822 Index ...