Specifications

97ADOBE FLEX 3
Building and Deploying Adobe Flex 3 Applications
When the user navigates to another panel in the Accordion container, the navigator container creates the next set
of controls, and recursively creates the new view’s controls and their descendants. You can use the Accordion
container’s
creationPolicy property to modify this behavior. The following table describes the values of the
creationPolicy property when you use it with navigator containers:
The following example sets the creationPolicy property of an Accordion container to all, which instructs the
container to instantiate all controls for every panel in the navigator container when the application starts:
<?xml version="1.0"?>
<!-- layoutperformance/AllCreationPolicy.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Panel title="Accordion">
<mx:Accordion id="myAccordion" creationPolicy="all">
<mx:VBox label="Accordion Button for Panel 1">
<mx:Label text="Accordion container panel 1"/>
<mx:Button label="Click Me"/>
</mx:VBox>
<mx:VBox label="Accordion Button for Panel 2">
<mx:Label text="Accordion container panel 2"/>
<mx:Button label="Click Me"/>
</mx:VBox>
<mx:VBox label="Accordion Button for Panel 3">
<mx:Label text="Accordion container panel 3"/>
<mx:Button label="Click Me"/>
</mx:VBox>
</mx:Accordion>
</mx:Panel>
</mx:Application>
Value Description
all
Creates all controls in all views of the navigator container. This setting causes a delay in application startup time, but
results in quicker response time for user navigation.
auto
Creates all controls only in the initial view of the navigator container. This setting causes a faster startup time for the
application, but results in slower response time for user navigation.
This setting is the default for multiple-view containers.
none
Instructs Flex to not instantiate any component within the navigator container or any of the navigator containers panels
until you manually instantiate the controls.
To manually instantiate controls, you use the createComponentsFromDescriptors() method. For more
information, see
“Creating deferred components” on page 98.
queued
This property has no effect on deferred creation. For more information on using the queued value of the
creationPolicy property, see “Using ordered creation” on page 101.