MovieClip._target
Availability
Flash Player 4.
Usage
my_mc._target:String
Description
Read-only property; returns the target path of the movie clip instance specified by
notation. Use the
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));
}
}
586
Chapter 2: ActionScript Language Reference
function to convert the target path to dot notation.
eval()
in slash
my_mc
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?