_target (MovieClip._target property)

public _target : String [read-only]

Returns the target path of the movie clip instance, in slash notation. Use the eval() function to convert the target path to dot notation.

Availability: ActionScript 1.0; Flash Player 4

Example

The following example displays the target paths of movie clip instances in a SWF file, in both slash and dot notation.

for (var i in this) {
    if (typeof (this[i]) == "movieclip") {
    trace("name: " + this[i]._name + ",\t target: " + this[i]._target + ",\t target(2):" 
            + eval(this[i]._target));
    }
}

Flash CS3


 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flash/9.0/main/00001978.html