TextField._parent Property

ActionScript for Flash MX: The Definitive Guide, 2nd Edition
By Colin Moock
Chapter 18.  ActionScript Language Reference
TextField._parent Property Flash 6read/write (write has no meaningful effect)

a reference to the movie clip in which the text field resides
theField._parent

Description

The _parent property is an object reference to the movie clip that contains theField. For example, if we have a text field named title_txt in a clip named mainSection_mc, then title_txt._parent refers to mainSection_mc. Compared to its cousin, MovieClip._parent, TextField._parent is rarely used, but it may occasionally be handy when working with text fields grouped in separate movie clips.

Usage

Though it is possible to reassign the _parent property to another clip (or any other value), doing so has little purpose only the reference is changed, not the physical hierarchy of the clip and text field.

See Also

MovieClip._parent, TextField._name



    ActionScript for Flash MX. The Definitive Guide
    ActionScript for Flash MX: The Definitive Guide, Second Edition
    ISBN: 059600396X
    EAN: 2147483647
    Year: 2002
    Pages: 780
    Authors: Colin Moock

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net