FlexTip - Stop displaying Focus
Thursday, May 29th, 2008- AS3Tip: Tween in AS3.0 project
- FlexTips
- FlexTip: Preventing CheckBox selection with Key.SPACE
- FlexTip: mx:Text vs. mx:TextArea
- FlexTip: Problem with masks and scalable Flash
- FlexTip: WordWrap for mx:Text
- Useful Flex tips
- FlexTip - Stop displaying Focus
- FlexTip: Add Thumbs to Mx:Slider programatically
- FlexTips: How to add Bitmap to UIComponent
- FlexTip: XMLSocket connect() after disconnect from server
Here is quick Flex Tip. If you don’t want to display focus rectangle on pressing TAB key, you should use focusEnabled = false;
It’s quick solution for 1 component, but if you want disable focus for all components in your application just use focusManager.deactivate();
That’s all, hope it helps to anyone…
New: Thanks to Marc Hughes for pointing this out:
Instead of focusManager.deactivate(); use focusManager.showFocusIndicator=false;
tagged under: flex.Flex Tips





3 Comments
Marc Hughes
• Visit Site
May 29th, 2008
Please don’t do that, it screws up the web for people using screen readers and Flash already has a hard enough time in that area without people purposefully mucking it up.
You probably actually want:
focusManager.showFocusIndicator=false;
cazlo
• Visit Site
June 25th, 2008
Fla Components providing Flash Based XML Components like FLV Player for better video streaming, and XML Flash Gallery Components for the Online Portfolio, Flash Menus, Rendering Objects & more..
For More Information Visit http://www.flacomponents.com
Dave
• Visit Site
June 26th, 2008
Much like Marc said, whilst this is a neat trick, it does to lead problems on various OS/browser/flash version combinations.
Try to avoid the use of this using:
focusManager.showFocusIndicator=false;
Live Preview
Leave a comment