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.

See also<br />

loadMovie function, swapDepths (MovieClip.swapDepths method)<br />

maxscroll property<br />

variable_name.maxscroll<br />

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

TextField.maxscroll.<br />

Indicates the line number of the top line of visible text in a text field when the bottom line in<br />

the field is also visible. The maxscroll property works with the scroll property to control<br />

how information appears in a text field. This property can be retrieved, but not modified.<br />

See also<br />

maxscroll (TextField.maxscroll property), scroll (TextField.scroll property)<br />

_parent property<br />

_parent.property<br />

_parent._parent.property<br />

Specifies or returns a reference to the movie clip or object that contains the current movie clip<br />

or object. The current object is the object containing the ActionScript code that references<br />

_parent. Use _parent to specify a relative path to movie clips or objects that are above the<br />

current movie clip or object.<br />

Example<br />

In the following example, there is a movie clip on the Stage with the instance name<br />

square_mc. Within that movie clip is another movie clip with an instance name circle_mc.<br />

The following ActionScript lets you modify the circle_mc parent instance (which is<br />

square_mc) when the circle is clicked. When you are working with relative addressing (using<br />

_parent instead of _root), it might be easier to use the Insert Target Path button in the<br />

Actions panel at first.<br />

this.square_mc.circle_mc.onRelease = function() {<br />

this._parent._alpha -= 5;<br />

};<br />

See also<br />

_root property, targetPath function<br />

100 ActionScript language elements

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

Saved successfully!

Ooh no, something went wrong!