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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

See also<br />

beginFill (MovieClip.beginFill method), beginGradientFill<br />

(MovieClip.beginGradientFill method), moveTo (MovieClip.moveTo method)<br />

focusEnabled (MovieClip.focusEnabled property)<br />

public focusEnabled : Boolean<br />

If the value is undefined or false, a movie clip cannot receive input focus unless it is a<br />

button. If the focusEnabled property value is true, a movie clip can receive input focus even<br />

if it is not a button.<br />

Example<br />

The following example sets the focusEnabled property for the movie clip my_mc to false:<br />

my_mc.focusEnabled = false;<br />

_focusrect (MovieClip._focusrect property)<br />

public _focusrect : Boolean<br />

A Boolean value that specifies whether a movie clip has a yellow rectangle around it when it<br />

has input focus. This property can override the global _focusrect property. The default<br />

value of the _focusrect property of a movie clip instance is null; the movie clip instance<br />

does not override the global _focusrect property. If the _focusrect property of a movie clip<br />

instance is set to true or false, it overrides the setting of the global _focusrect property for<br />

the single movie clip instance.<br />

Note: For Flash Lite 2.0, when the _focusrect property is disabled (in other words,<br />

MovieClip._focusrect is set to false), the movie clip still receives all key press <strong>and</strong> mouse<br />

events.<br />

Also for Flash Lite 2.0, you can change the color of the focus rectangle using the fscomm<strong>and</strong>2<br />

SetFocusRectColor comm<strong>and</strong>. This behavior is different from Flash Player, for which the<br />

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

Example<br />

This example demonstrates how to hide the yellow rectangle around a specified movie clip<br />

instance in a SWF file when the instance has focus in a browser window. Create three movie<br />

clips called mc1_mc, mc2_mc, <strong>and</strong> mc3_mc, <strong>and</strong> add the following ActionScript to Frame 1 of<br />

the Timeline:<br />

mc1_mc._focusrect = true;<br />

mc2_mc._focusrect = false;<br />

MovieClip 423

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

Saved successfully!

Ooh no, something went wrong!