Controlling Other Timelines - MACROMEDIA FLASH 8-LEARNING FLASH LITE 1.X ACTIONSCRIPT Manual

Learning flash lite 1.x actionscript
Table of Contents

Advertisement

The
function lets you set a property of a movie clip instance, as shown in the
setProperty()
following example:
setProperty(cartoonArea, _x, 100);
The following example is equivalent to the previous example but uses dot syntax:
cartoonArea._x = 100;
You can also get or set movie clip properties from within a
statement. The
tellTarget()
following code is equivalent to the
example shown previously:
setProperty()
tellTarget("/cartoonArea") {
_x = 100;
}
For more information about the
function, see

"Controlling other timelines"

tellTarget()
on page
10.

Controlling other timelines

To specify a path to a timeline, use slash syntax (/) combined with dots (..) to build the path
reference. You can also use
,
, or
from Flash 5 notation to refer to,
_level
_root
_parent
respectively, a specific movie level, the application's root timeline, or the parent timeline.
For example, suppose you had a movie clip instance named
on your SWF file's main
box
timeline. The
instance, in turn, contains another movie clip instance named
. The
box
cards
following examples target the movie clip
from the main timeline:
cards
tellTarget("/box/cards")
tellTarget("_level0/box/cards")
The following example targets the main timeline from the movie clip
:
cards
tellTarget("../../cards")
tellTarget("_root")
The following example targets the parent movie clip
:
cards
tellTarget("../cards")
tellTarget("_parent/cards")
10
Flash 4 ActionScript Primer

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents