| Flex 3 - Error #1009 - control not initializing | | Print | |
|
If your application is is throwing Error # 1009 and your controls do not initialize or are null when you are debugging your application, Try this Set you Application creationPolicy="all"Here is why... Creation policy (click here to view Adobe's documentation)
Containers have a creationPolicy property that specifies when its children are created. By default, containers have a creation policy of ContainerCreationPolicy.AUTO, which means that the container delays creating descendants until they are needed, a process which is known as deferred instantiation. (A container's default creation policy is derived from its parent's instantiation policy, and the Application container has a default policy of ContainerCreationPolicy.AUTO.) |
