确保 Flex 组件在开始时加载
如何确保所有组件(即使是那些在开始时不可见的组件)在启动应用程序时立即加载?
我有一个带有 ViewStack 的应用程序,其可见子项是通过侧边栏菜单设置的。假设 ViewStack 有两个子视图,A 和 B。A 最初是可见的,而 B 不可见。我如何确保它们都在开始时加载,以便当我更改为 BI 时不必等待它加载?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的每个视图堆栈都应该
不确定是否可以在应用程序级别设置它或不控制所有子视图,但我知道它适用于视图堆栈。
each of your viewstacks should have
not sure if this can be set at the application level or not to control all children, but I know it works on viewstacks.