ActionScript 2.0 Components Language Reference |
|
|
|
| Slide class > Slide.numChildSlides | |||
Flash Player 6 (6.0.79.0).
Flash MX Professional 2004.
mySlide.numChildSlides
Property (read-only); returns the number of child slides that mySlide contains. A slide can contain either forms or other slides; if mySlide contains both slides and forms, this property only returns the number of slides, and does not count forms.
This example uses Slide.numChildSlides and the Slide.getChildSlide() method to iterate over all the child slides of the root presentation slide. It then displays their names in the Output panel.
var numSlides = _root.Presentation.numChildSlides;
for(var slideIndex=0; slideIndex < numSlides; slideIndex++) {
var childSlide = _root.Presentation.getChildSlide(slideIndex);
trace(childSlide._name);
}
|
|
|
|