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.

Example<br />

The following ActionScript sets a custom tab order for three movie clip instances.<br />

myMC1_mc.onRelease = function() {};<br />

myMC2_mc.onRelease = function() {};<br />

myMC3_mc.onRelease = function() {};<br />

myMC1_mc.tabIndex = 2;<br />

myMC2_mc.tabIndex = 1;<br />

myMC3_mc.tabIndex = 3;<br />

See also<br />

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

_target (MovieClip._target property)<br />

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

Returns the target path of the movie clip instance, in slash notation. Use the eval() function<br />

to convert the target path to dot notation.<br />

Example<br />

The following example displays the target paths of movie clip instances in a SWF file, in both<br />

slash <strong>and</strong> dot notation.<br />

for (var i in this) {<br />

if (typeof (this[i]) == "movieclip") {<br />

trace("name: " + this[i]._name + ",\t target: " + this[i]._target + ",\t<br />

target(2):"<br />

+ eval(this[i]._target));<br />

}<br />

}<br />

_totalframes (MovieClip._totalframes property)<br />

public _totalframes : Number [read-only]<br />

Returns the total number of frames in the movie clip instance specified in the MovieClip<br />

parameter.<br />

Example<br />

In the following example, two movie clip buttons control the Timeline. The prev_mc button<br />

moves the playhead to the previous frame, <strong>and</strong> the next_mc button moves the playhead to the<br />

next frame. Add content to a series of frames on the Timeline, <strong>and</strong> add the following<br />

ActionScript to Frame 1 of the Timeline:<br />

stop();<br />

472 ActionScript classes

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

Saved successfully!

Ooh no, something went wrong!