Disable the yellow Flash form tab highlights

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;
}

Leave a Reply

Your email address will not be published. Required fields are marked *