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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

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

22);<br />

two_txt.border = true;<br />

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

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

22);<br />

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 />

one_txt.tabIndex = 3;<br />

two_txt.tabIndex = 1;<br />

three_txt.tabIndex = 2;<br />

four_txt.tabIndex = 4;<br />

See also<br />

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

_target (TextField._target property)<br />

public _target : String [read-only]<br />

The target path of the text field instance. The _self target specifies the current frame in the<br />

current window, _blank specifies a new window, _parent specifies the parent of the current<br />

frame, <strong>and</strong> _top specifies the top-level frame in the current window.<br />

Example<br />

The following ActionScript creates a text field called my_txt <strong>and</strong> outputs the target path of<br />

the new field, in both slash <strong>and</strong> dot notation.<br />

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

22);<br />

trace(my_txt._target); // output: /my_txt<br />

trace(eval(my_txt._target)); // output: _level0.my_txt<br />

text (TextField.text property)<br />

public text : String<br />

Indicates the current text in the text field. Lines are separated by the carriage return character<br />

("\r", ASCII 13). This property contains the normal, unformatted text in the text field,<br />

without HTML tags, even if the text field is HTML.<br />

TextField 645

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

Saved successfully!

Ooh no, something went wrong!