
Work with Instances
in ActionScript
224
Relative Target Paths in Flash
Flash reserves three keywords to make it easier to
access your movie clips and objects in ActionScript 3:
this, parent, and root. The keyword refers to the
Timeline you are currently working on. The parent
keyword refers to the object that your current object
is inside. For example, if you are writing a script on
the Timeline of ball in the previous example, and you
want to reference field, your target path would be the
following:
this.parent
The root keyword always refers to the main Timeline
of your Flash movie. So, to reference field another
way from the Timeline of ball, you could use ...