About the focus rectangle
By default, Flash Lite draws a yellow rectangle around the button or input text field that has
focus. The focus rectangle lets the user know which object on the screen will respond when
the user presses the device's Select key. For example, the following image shows the focus
rectangle drawn around a button that has the current keypad focus:
For buttons, the focus rectangle's bounding box is determined by the button's hit area—
the invisible region that (in Flash desktop applications) defines the part of the button that
responds to mouse clicks. For input text fields, the focus rectangle's bounding box is
determined by the text field's dimensions.
You can disable the default focus rectangle behavior by setting the
. If you're using buttons that define over states, Flash Lite displays those states when the
false
button receives focus. For this reason, the focus rectangle is often not necessary when using
buttons. For example, the following image shows the same application as in the preceding
image, but with the focus rectangle disabled; the button that has focus is displaying its
over state:
Button with current focus and
default focus rectangle
Button with current focus (focus
rectangle disabled)
Using tab navigation in Flash Lite
property to
_focusRect
11
Need help?
Do you have a question about the FLASH 8-DEVELOPING FLASH LITE and is the answer not in the manual?