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.

Parameters<br />

movieClip:String - The instance name of a movie clip.<br />

action:String - An action or field.<br />

property:String - A property of the MovieClip object.<br />

Example<br />

The following example stops the Timeline of the level containing the currently executing<br />

script:<br />

_root.stop();<br />

The following example traces variables <strong>and</strong> instances in the scope of _root:<br />

for (prop in _root) {<br />

trace("_root."+prop+" = "+_root[prop]);<br />

}<br />

See also<br />

_lockroot (MovieClip._lockroot property), _parent property, targetPath<br />

function<br />

scroll property<br />

textFieldVariableName.scroll = x<br />

Deprecated since Flash Player 5. This property was deprecated in favor of<br />

TextField.scroll.<br />

Controls the display of information in a text field associated with a variable. The scroll<br />

property defines where the text field begins displaying content; after you set it, Flash Player<br />

updates it as the user scrolls through the text field. The scroll property is useful for directing<br />

users to a specific paragraph in a long passage or creating scrolling text fields. This property<br />

can be retrieved <strong>and</strong> modified.<br />

Example<br />

The following code is attached to an Up button that scrolls the text field named myText:<br />

on (release) {<br />

myText.scroll = myText.scroll + 1;<br />

}<br />

102 ActionScript language elements

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

Saved successfully!

Ooh no, something went wrong!