Screen.indexinparent - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

Description
Method; returns the child screen of
Example
The following example sends the names of all the child screens belonging to the root screen
named
Presentation
for (var i:Number = 0; i < _root.Presentation.numChildScreens; i++) {
var childScreen:mx.screens.Screen =
_root.Presentation.getChildScreen(i);
trace(childScreen._name);
}

Screen.indexInParent

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
myScreen.indexInParent
Description
Property (read-only); contains the zero-based index of
child screens.
Example
The following example displays the relative position of the screen
screen's list of child screens.
var numChildren:Number = myScreen._parent.numChildScreens;
var myIndex:Number = myScreen.indexInParent;
trace("I'm child slide # " + myIndex + " out of " + numChildren + "
screens.");
myScreen
to the Output panel.
whose index is
childIndex
in its parent's list of
myScreen
myScreen
.
in its parent
Screen.indexInParent
1083

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents