I don't think there is a provision for such a thing.Setting creationPolicy="all" will work for you i guess.The second child will be drawn along with the first child
There's no threads or processes in ActionScript/Flex. One way to do something in the "background" is to use a timer. Don't know if it helps you in any way, though.
1 person found this helpful
creationPolicy="all" will work if you have only two children and their content never change.
But if you have many more children or your children content change, you need to use what is called deffered instantiation.
In that case, you use creationPolicy="none" and you explicitly tell the viewstack children to create their component by a call to
what i'm trying to do is a smooth user experience. right now the drawing of second child is taking a while and making the UI pause with a blank screen. so i'd like to invoke the "draw" and let it draw it in memory in the background and then be able just flip to it instantatenously.. like a viewstack is supposed to be
There are two things that should not be confused.
The instantiation of the components and their rendering are two different things.
The overhead you experience right now is due to instantiatio, not rendering.
Rendering only occurs when you actually SEE the components.