ActionScript 2.0 Components Language Reference |
|
|
|
| Slide class > Slide.previousSlide | |||
Flash Player 6 (6.0.79.0).
Flash MX Professional 2004.
mySlide.previousSlide
Property (read-only); returns the slide you would reach if you called mySlide.gotoPreviousSlide(), but does not actually navigate to that slide. For example, you can use this property to display the name of the previous slide in a presentation and let users select whether they want to navigate to that slide.
In this example, the label of a Button component named previousButton displays the name of the previous slide in the presentation. If there is no previous slide--that is, if mySlide.previousSlide is null--the button's label is updated to indicate that the user is at the beginning of this slide presentation.
if (mySlide.previousSlide != null) {
previousButton.label = "Previous slide: " + mySlide.previous._name + " > ";
} else {
previousButton.label = "You're at the beginning of this slide presentation.";
}
Slide.gotoPreviousSlide(), Slide.nextSlide
|
|
|
|