User Guide
Global Properties 103
If the global _focusrect property is set to false, the default behavior for all buttons and
movieclips is that keyboard navigation is limited to the Tab key. All other keys, including the
Enter and arrow keys, are ignored. To restore full keyboard navigation, you must set
_focusrect to true. To restore full keyboard functionality for a specific button or movieclip,
you can override this global property by using either
Button._focusrect or
MovieClip._focusrect.
Note: If you use a component, FocusManager overrides Flash Player's focus handling,
including use of this global property.
Note: For the Flash Lite 2.0 player, when the
_focusrect property is disabled (such as
Button.focusRect = false or MovieClip.focusRect = false ), the button or movie clip
still receives all events. This behavior is different from the Flash player, for when the
_focusrect property is disabled, the button or movie clip will receive the rollOver and
rollOut events but will not receive the press and release events.
Also for Flash Lite 2.0, you can change the color of the focus rectangle by using the
fscommand2
SetFocusRectColor command. This behavior is different from Flash Player,
where the color of the focus rectangle is restricted to yellow.
Availability: ActionScript 1.0; Flash Lite 1.0
Example
The following example demonstrates how to hide the yellow rectangle around any instances in
a SWF file when they have focus in a browser window. Create some buttons or movie clips
and add the following ActionScript in Frame 1 of the Timeline:
_focusrect = false;
See also
_focusrect (Button._focusrect property), _focusrect (MovieClip._focusrect
property)
_forceframerate property
_forceframerate
If set to true, this property tells the Flash Lite player to render at the specified frame rate. You
can use this property for pseudo-synchronized sound when the content contains device
sound. It is set to
false by default, which causes Flash Lite to render normally. When set to
true, the Flash Lite player might skip rendering certain frames to maintain the frame rate.
Availability: ActionScript 2.0; Flash Lite 2.0