all groups > flash (macromedia) > january 2007 >
You're in the

flash (macromedia)

group:

unwanted focus rectangle


unwanted focus rectangle targetplanet
1/9/2007 11:07:37 PM
flash (macromedia):
I have some text fields in a form that are set to a tab order. when I tab
through the form, a grey rectangle appears around the textfields. I can't seem
to get ride of them. I would mind them, except the rectangle of the last form
item tabbed to stay were it is after the form is submitted, and doesn't go away
until the tab button is hit again. I tried _focusrect = false both on the
textfields and globally, and it did nothing. any Ideas how to get ride of this.
thanks
Russ
Re: unwanted focus rectangle uamg
10/23/2007 4:13:54 PM
If you are using components, then FocusManager overrides the default focus
handling.

I tampered a little with UIComponent and managed to get rid of the focus
rectangles. I would not say that this is the perfect solution, but it works for
my specific project.



import mx.core.UIComponent;
UIComponent.prototype.drawFocus = function(focused) {
this.myFocus(focused);
}
TextField.prototype.drawFocus = UIComponent.prototype.drawFocus;
AddThis Social Bookmark Button