User Guide

1158 Slide class (Flash Professional only)
Slide.gotoSlide()
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
mySlide.gotoSlide(newSlide)
Parameters
newSlide The slide to navigate to.
Returns
A Boolean value indicating if the navigation succeeded (true) or not (false).
Description
Method; navigates to the slide specified by newSlide. For the navigation to succeed, the
following must be true:
The current slide must be a child slide of mySlide.
The slide specified by newSlide and the current slide must share a common ancestor
slide—that is, the current slide and
newSlide must reside in the same slide subtree.
If either of these conditions isnt met, the navigation fails and the method returns
false;
otherwise, the method navigates to the specified slide and returns
true.
For example, consider the following slide hierarchy:
Presentation
Slide1
Slide1_1
Slide1_2
Slide2
Slide2_1
Slide2_2
If the current slide is Slide1_2, the following gotoSlide() call fails, because the current
slide is not a descendant of
Slide2:
Slide2.gotoSlide(Slide2_1);