Slide.rootSlide

Availability

Flash Player 6 (6.0.79.0).

Edition

Flash MX Professional 2004.

Usage

mySlide.rootSlide

Description

Property (read-only); returns the root slide of the slide tree, or slide subtree, that contains mySlide.

Example

Suppose you have a movie clip on a slide that, when clicked, goes to the first slide in the presentation. To accomplish this, you would attach the following code to the movie clip:

on(press) {
    _parent.rootSlide.gotoFirstSlide();
}

In this case, _parent refers to the slide that contains the movie clip object.