03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

If the global _focusrect property is set to false, the default behavior for all buttons <strong>and</strong><br />

movieclips is that keyboard navigation is limited to the Tab key. All other keys, including the<br />

Enter <strong>and</strong> arrow keys, are ignored. To restore full keyboard navigation, you must set<br />

_focusrect to true. To restore full keyboard functionality for a specific button or movieclip,<br />

you can override this global property by using either Button._focusrect or<br />

MovieClip._focusrect.<br />

Note: If you use a component, FocusManager overrides Flash Player's focus h<strong>and</strong>ling,<br />

including use of this global property.<br />

Note: For the Flash Lite 2.0 player, when the _focusrect property is disabled (such as<br />

Button.focusRect = false or MovieClip.focusRect = false ), the button or movie clip<br />

still receives all events. This behavior is different from the Flash player, for when the<br />

_focusrect property is disabled, the button or movie clip will receive the rollOver <strong>and</strong><br />

rollOut events but will not receive the press <strong>and</strong> release events.<br />

Also for Flash Lite 2.0, you can change the color of the focus rectangle by using the<br />

fscomm<strong>and</strong>2 SetFocusRectColor comm<strong>and</strong>. This behavior is different from Flash Player,<br />

where the color of the focus rectangle is restricted to yellow.<br />

Example<br />

The following example demonstrates how to hide the yellow rectangle around any instances in<br />

a SWF file when they have focus in a browser window. Create some buttons or movie clips<br />

<strong>and</strong> add the following ActionScript in Frame 1 of the Timeline:<br />

_focusrect = false;<br />

See also<br />

_focusrect (Button._focusrect property), _focusrect (MovieClip._focusrect<br />

property)<br />

_forceframerate property<br />

_forceframerate<br />

If set to true, this property tells the Flash Lite player to render at the specified frame rate. You<br />

can use this property for pseudo-synchronized sound when the content contains device<br />

sound. It is set to false by default, which causes Flash Lite to render normally. When set to<br />

true, the Flash Lite player might skip rendering certain frames to maintain the frame rate.<br />

_global property<br />

_global.identifier<br />

Global Properties 97

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!