Slide.nextSlide

Availability

Flash Player 6 (6.0.79.0).

Edition

Flash MX Professional 2004.

Usage

mySlide.nextSlide

Description

Property (read-only); returns the slide you would reach if you called mySlide.gotoNextSlide(), but does not actually navigate to that slide. For example, you can use this property to display the name of the next slide in a presentation and let users select whether they want to navigate to that slide.

Example

In this example, the label of a Button component named nextButton displays the name of the next slide in the presentation. If there is no next slide--that is, if mySlide.nextSlide is null--then the button's label is updated to indicate that the user is at the end of this slide presentation.

if (mySlide.nextSlide != null) {
        nextButton.label = "Next slide: " + mySlide.nextSlide._name + " > ";
} else {
    nextButton.label = "End of this slide presentation.";
}

See also

Slide.gotoNextSlide(), Slide.previousSlide