Flex 3: Delaying Instantiation to Improve Startup Time with Components
This tutorial is inspired by the book Flex 3 Cookbook
A quick tip to ensure components render in your Flex application, only when needed for display. You work with the creationPolicy property of the Container class.
By default, Flex creates components only when they are displayed in the mxml, which infers the creationPolicy is set to auto. You can either leave it at default, or use:
- none – no components created.
- all - all components will be created, and queued, based on their creationIndex.
To illustrate this, the chapter shows a ComboBox sample snippet:
...
<mx:Script>
[


