I've got an application with 8 different states. When the user moves from one state to the next for the first time, there's a brief (but perceptible) delay while the Flash Player sets up everything on the next view (state). I would like to see what the increased load time looked like--it may be preferable to have slightly longer load time in order to get "snappier" performance once inside the app.
I initially thought I could set creationPolicy to "all" and then everything would get created immediately, when the app first loads. But that's not working--no change in behavior, and when I inspect objects that on any view besides the first one, they are all null. I have to first change to the state where that component is hosted, and then component is initialized and available.
I read elsewhere that I could use itemCreationPolicy, but that is not a property on the application object... do I need to apply that somewhere else?
I'm on Flex 4.0.
Oops I might have replied to the wrong post in http://forums.adobe.com/thread/767099
I think you'll want to look at setting the itemCreationPolicy to immediate.
Check out "Custom Creation and Destruction Policies" section of this spec for more details: