MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 437

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

Advertisement

Form.numChildForms
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myForm.numChildForms
Description
Property (read-only); the number of child forms contained by
from the class mx.screens.Form. This property does not include any slides that are contained by
; it contains only forms.
myForm
Note: When using a custom ActionScript 2.0 class that extends mx.screens.Form, the form isn't
counted in the
numChildForms
Example
The following code iterates over all the child forms contained in
in the Output panel.
var howManyKids:Number = myForm.numChildForms;
for(i=0; i<howManyKids; i++) {
var childForm = myForm.getChildForm(i);
trace(childForm._name);
}
See also
Form.getChildForm()
Form.parentIsForm
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myForm.parentIsForm
Description
Property (read-only): returns a Boolean value indicating whether the specified form's parent
object is also a form (
form hierarchy.
438
Chapter 6: Components Dictionary
property.
) or not (
). If this property is
true
false
that are derived directly
myForm
and displays their names
myForm
,
is at the root of its
false
myForm

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?

Questions and answers

This manual is also suitable for:

Flash mx

Table of Contents