Using variables

To specify a variable on a timeline, use slash syntax (/) combined with dots (..) and colons (:). You can also use the dot notation.

The following code refers to the car variable on the main timeline:

/:car
_root.car

The following example shows the car variable in a movie clip instance that resides on the main timeline:

/mc1/mc2/:car
_root.mc1.mc2.car

The following example shows the car variable in a movie clip instance that resides on the current timeline:

mc2/:car
mc2.car