FlexTip – Stop displaying Focus

Štvrtok, Máj 29th, 2008
FlexTip – Stop displaying Focus

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: .

ABOUT THIS AUTHOR

3 Comments


  1. 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;


  2. 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


  3. 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.

Images is enhanced with WordPress Lightbox JS by Zeo