03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

three_txt.border = true;<br />

three_txt.type = "input";<br />

this.createTextField("four_txt", this.getNextHighestDepth(), 10, 100, 100,<br />

22);<br />

four_txt.border = true;<br />

four_txt.type = "input";<br />

three_txt.tabEnabled = false;<br />

three_txt.text = "tabEnabled = false;";<br />

See also<br />

tabEnabled (Button.tabEnabled property), tabEnabled (MovieClip.tabEnabled<br />

property)<br />

tabIndex (TextField.tabIndex property)<br />

public tabIndex : Number<br />

Lets you customize the tab ordering of objects in a SWF file. You can set the tabIndex<br />

property on a button, movie clip, or text field instance; it is undefined by default.<br />

If any currently displayed object in the SWF file contains a tabIndex property, automatic tab<br />

ordering is disabled, <strong>and</strong> the tab ordering is calculated from the tabIndex properties of<br />

objects in the SWF file. The custom tab ordering only includes objects that have tabIndex<br />

properties.<br />

The tabIndex property must be a positive integer. The objects are ordered according to their<br />

tabIndex properties, in ascending order. An object with a tabIndex value of 1 precedes an<br />

object with a tabIndex value of 2. If two objects have the same tabIndex value, the one that<br />

precedes the other in the tab ordering is undefined.<br />

The custom tab ordering defined by the tabIndex property is flat. This means that no<br />

attention is paid to the hierarchical relationships of objects in the SWF file. All objects in the<br />

SWF file with tabIndex properties are placed in the tab order, <strong>and</strong> the tab order is<br />

determined by the order of the tabIndex values. If two objects have the same tabIndex<br />

value, the one that goes first is undefined. You should not use th( same tabIndex value for<br />

multiple objects.<br />

Example<br />

The following ActionScript dynamically creates four text fields <strong>and</strong> assigns them to a custom<br />

tab order. Add the following ActionScript to your FLA or ActionScript file:<br />

this.createTextField("one_txt", this.getNextHighestDepth(), 10, 10, 100,<br />

22);<br />

one_txt.border = true;<br />

644 ActionScript classes

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!