Slide.lastslide - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

Example
The following code uses the
to display the index of the current slide being viewed and the total number of slides contained
by its parent slide. To use this code, attach it to a parent slide that contains one or more
child slides.
on (revealChild) {
trace("Displaying "+(currentSlide.indexInParentSlide+1)+" of
"+currentSlide._parent.numChildSlides);
}
Note that because this property is a zero-based index, its value is incremented by 1
(
currentSlide.indexInParent+1
See also
Slide.numChildSlides

Slide.lastSlide

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
mySlide.lastSlide
Description
Property (read-only); returns the last child slide of
indexInParentSlide
) to display more meaningful values.
,
Slide.revealChild
and
Slide.numChildSlides
that has no child slides.
mySlide
properties
Slide.lastSlide
1161

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents