Flash Lite 2.x and 3.0 ActionScript Language Reference

_target (TextField._target property)

public _target : String [read-only]

The target path of the text field instance. The _self target specifies the current frame in the current window, _blank specifies a new window, _parent specifies the parent of the current frame, and _top specifies the top-level frame in the current window.

Example

The following ActionScript creates a text field called my_txt and outputs the target path of the new field, in both slash and dot notation.

this.createTextField("my_txt", this.getNextHighestDepth(), 10, 10, 100, 22);
trace(my_txt._target); // output: /my_txt
trace(eval(my_txt._target)); // output: _level0.my_txt