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.

Returns a string containing the target path of a MovieClip, Button, or TextFieldobject. The<br />

target path is returned in dot (.) notation. To retrieve the target path in slash (/) notation, use<br />

the _target property.<br />

Parameters<br />

targetObject:Object - Reference (for example, _root or _parent ) to the object for which<br />

the target path is being retrieved. This can be a MovieClip, Button, or TextField object.<br />

Returns<br />

String - A string containing the target path of the specified object.<br />

Example<br />

The following example traces the target path of a movie clip as soon as it loads:<br />

this.createEmptyMovieClip("myClip_mc", this.getNextHighestDepth());<br />

trace(targetPath(myClip_mc)); // _level0.myClip_mc<br />

See also<br />

eval function<br />

tellTarget function<br />

tellTarget("target") { statement(s); }<br />

Deprecated since Flash Player 5. <strong>Adobe</strong> recommends that you use dot (.) notation <strong>and</strong> the<br />

with statement.<br />

Applies the instructions specified in the statements parameter to the Timeline specified in<br />

the target parameter. The tellTarget action is useful for navigation controls. Assign<br />

tellTarget to buttons that stop or start movie clips elsewhere on the Stage. You can also<br />

make movie clips go to a particular frame in that clip. For example, you might assign<br />

tellTarget to buttons that stop or start movie clips on the Stage or prompt movie clips to<br />

jump to a particular frame.<br />

In Flash 5 or later, you can use dot (.) notation instead of the tellTarget action. You can use<br />

the with action to issue multiple actions to the same Timeline. You can use the with action to<br />

target any object, whereas the tellTarget action can target only movie clips.<br />

Parameters<br />

target:String - A string that specifies the target path of the Timeline to be controlled.<br />

statement(s):Object - The instructions to execute if the condition is true.<br />

82 ActionScript language elements

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

Saved successfully!

Ooh no, something went wrong!