Language Version : | ActionScript 3.0 |
Runtime Versions : | Flash Player 10, AIR 1.5 |
The DeferredCreationPolicy class defines the constant values
for the
creationPolicy
property of the DeferedGroup class.
public function DeferredCreationPolicy()
Language Version : | ActionScript 3.0 |
Runtime Versions : | Flash Player 9, AIR 1.1 |
Constructor
public static const ALL:String = all
Language Version : | ActionScript 3.0 |
Runtime Versions : | Flash Player 9, AIR 1.1 |
Immediately create all descendants.
Avoid using this creationPolicy
because
it increases the startup time of your application.
There is usually no good reason to create components at startup
which the user cannot see.
If you are using this policy so that you can "push" data into
hidden components at startup, you should instead design your
application so that the data is stored in data variables
and components which are created later "pull" in this data,
via databinding or an initialize
handler.
public static const CONSTRUCT:String = construct
Language Version : | ActionScript 3.0 |
Runtime Versions : | Flash Player 9, AIR 1.1 |
Construct all decendants immediately but only inialize those
that are visible.
This is useful if you using the container as a dataProvider
to a MenuBar, as the MenuBar requires all the children to be created
to get the correct dataProvider to drive its content.
public static const NONE:String = none
Language Version : | ActionScript 3.0 |
Runtime Versions : | Flash Player 9, AIR 1.1 |
Do not create any children.
With this creationPolicy
, it is the developer's
responsibility to programmatically create the children
from the UIComponentDescriptors by calling
createComponentsFromDescriptors()
on the parent container.
public static const VISIBLE:String = visible
Language Version : | ActionScript 3.0 |
Runtime Versions : | Flash Player 9, AIR 1.1 |
Only construct the immediate descendants and initialize
those that are visible.
Thu Aug 1 2013, 07:16 PM +10:00