Button.tabEnabled Property | Flash 6 |
Boolean; includes or excludes the button from the current tab order | read/write |
The Boolean tabEnabled property governs whether theButton is part of the tab order for the text fields, movie clips, and buttons currently on screen. The tab order is the sequence in which objects are focused when the Tab key is pressed in a movie. See TextField.tabEnabled for complete details.
For buttons, the tabEnabled property can exclude a button with a defined tabIndex from the custom tab order, or it can exclude any button from the automatic tab order. A button is typically removed from the tab order when it is disabled (its enabled property is false) or when it should be accessible only to mouse input, such as in games that use transparent buttons to act as mouse hit regions.
A movie clip's tabChildren property controls whether the text fields, clips, and buttons it contains are included in the automatic tab order. To disable tabbing for a group of buttons quickly, put them in a movie clip and set its tabChildren to false.
The Tab key does not work reliably in Test Movie mode unless Control Disable Keyboard Shortcuts is enabled. Be sure to test keyboard behavior in the Standalone Player, if applicable, and in the Flash Player for all targeted web browsers.
The following code prevents the keyboard from accessing done_btn:
done_btn.tabEnabled = false;
Button.enabled, Button.tabIndex, MovieClip.tabChildren, MovieClip.tabEnabled, TextField.tabEnabled