FlexTip – Stop displaying Focus
Štvrtok, Máj 29th, 2008Table of contents for flex-tips
- FlexTips
- FlexTip: mx:Text vs. mx:TextArea
- FlexTip: XMLSocket connect() after disconnect from server
- FlexTip: Problem with masks and scalable Flash
- FlexTips: How to add Bitmap to UIComponent
- FlexTip – Stop displaying Focus
- FlexTip: Preventing CheckBox selection with Key.SPACE
- FlexTip: WordWrap for mx:Text
- FlexTip: Add Thumbs to Mx:Slider programatically
- AS3 Conditional Breakpoint – enterDebugger()
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;
3 Comments
Marc Hughes
• Visit Site
Máj 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
Jún 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
Jún 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;
Sorry, comments for this entry are closed at this time.