ActionScript 2.0 Components Language Reference |
|
|
|
| Slide class > Slide.getChildSlide() | |||
Flash Player 6 (6.0.79.0).
Flash MX Professional 2004.
mySlide.getChildSlide(childIndex)
childIndex The zero-based index of the child slide to return.
A slide object.
Method; returns the child slide of mySlide whose index is childIndex. You can use this method to iterate over a set of child slides whose indices are known.
The following code causes the Output panel to display the names of all the child slides of the root presentation slide.
var numSlides = _root.Presentation.numChildSlides;
for(var slideIndex=0; slideIndex < numSlides; slideIndex++) {
var childSlide = _root.Presentation.getChildSlide(slideIndex);
trace(childSlide._name);
}
|
|
|
|