webdreamer
webdreamer

Reputation: 2499

Make sure Flex components are loaded at the beginning

How can I make sure all the components, even those that are not going to be visible at the beginning, load right away when I start my application?

I have an application with a ViewStack whose visible child is set via a sidebar menu. Say the ViewStack has two children, A and B. A is initially visible, whereas B is not. How can I make sure they both load at the beginning, so that when I change to B I don't have to wait for it to load?

Upvotes: 0

Views: 134

Answers (1)

invertedSpear
invertedSpear

Reputation: 11054

each of your viewstacks should have

creationPolicy = "all";

not sure if this can be set at the application level or not to control all children, but I know it works on viewstacks.

Upvotes: 1

Related Questions