Apache – Flex 3: States : CreationPolicy = All

apache-flexflex3

i have a component with different states, when i assign some value in another state, i get a runtime error [null]

How can i load all the states at once? using creationpolicy or anyther way?

In TabNavigator, creationpolicy=all solves that problem, but how to solve this issue when there are many states?

Thanks

Best Answer

The AddChild element has a creationPolicy property, which defaults to 'auto' but accepts 'all' or 'none' as well. Setting it to 'all' should work for you:

http://livedocs.adobe.com/flex/3/langref/mx/states/AddChild.html#creationPolicy

Related Topic