ScottKing.com.au

Disable the yellow Flash form tab highlights

by Scott King on Jun.25, 2009, under ActionScript, Flash

Flash has built-in functionality to allow a user to tab around the page elements using their Tab key on their keyboard, just as you would with a normal HTML site.

Flash highlights the focused Flash element with a 2px yellow border around the element.

Often designers will want to disable this highlighting effect so as to not disrupt their design. This can be achieved witha  few simple lines of ActionScript:
Be mindful of your implementation as this script uses a _root reference.


Button.prototype.tabEnabled=false;
for(var obj in _root){
_root[obj].tabEnabled = false;
_root[obj]._focusrect=false;
}

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • StumbleUpon
No comments for this entry yet...

Leave a Reply

You must be logged in to post a comment.

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...