MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 714

Using components
Hide thumbs Also See for FLASH MX 2004-USING COMPONENTS:
Table of Contents

Advertisement

Slide.indexInParentSlide
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
mySlide.indexInParent
Description
Property (read-only); returns the zero-based index of
Example
The following code uses the
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
Example
The following statements are all true concerning the slide hierarchy shown below:
Presentation.lastSlide._name == Results_bullet_1;
Intro.lastSlide._name == Intro_bullet_1_2;
714
Chapter 6: Components Dictionary
indexInParentSlide
) to display more meaningful values.
,
Slide.revealChild
in its parent's list of child slides.
mySlide
and
Slide.numChildSlides
that has no child slides.
mySlide
properties to

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx

Table of Contents