Note: The createComponentsFromDescriptors() method
is for MX containers. For Spark containers, use the createDeferredContent() method.
You
use the createComponentsFromDescriptors() method
of an MX container to create all the children of a container at
one time.
The createComponentsFromDescriptors() method
has the following signature:
container.createComponentsFromDescriptors(recurse:Boolean):Boolean
The recurse argument determines whether Flex should recursively
instantiate children of containers that are children of the top-level
container. Set the parameter to true to instantiate
children of the containers, or false to not instantiate
the children. The default value is true.
On a single-view MX container, calling the createComponentsFromDescriptors() method
instantiates all controls in that container, regardless of the value
of the creationPolicy property.
In navigator containers, if you set the creationPolicy property
to all, you do not have to call the createComponentsFromDescriptors() method, because
the container creates all controls in all views of the container.
If you set the creationPolicy property to none or auto,
calling the createComponentsFromDescriptors() method
creates only the current view’s controls and their descendents.
Another common usage is to set the navigator container’s creationPolicy property
to auto. You can then call navigator.getChildAt(n).createComponentsFromDescriptors() to
explicitly create the children of the n-th view.