Flex 4中的自定义预加载器? [英] Custom Preloader in Flex 4?
问题描述
我觉得愚蠢的...我引用我的主要应用程序类从preloader,从而导致我的所有类被编译到preloader,这意味着它不能显示preloader,直到一切都加载。
以备参考:仔细检查你的预加载器中的每一个引用,确保你使用的不仅仅是绝对必要的
Has anyone successfully implemented a custom preloader in Flex 4? In my experience, when I specify a custom preloader using the preloader="com.foo.MyPreloader" in the Application tag, the preloader does not display until the SWF is completely downloaded, defeating the purpose of the preloader! Perhaps this is a bug in the still-beta Flex 4 framework?
I feel dumb...I was referencing one of my main application classes from within the preloader, thus causing all of my classes to be compiled into the preloader, meaning it cannot display the preloader until everything is loaded.
For future reference: Double-check every reference in your preloader, make sure you use nothing more than what is absolutely necessary
这篇关于Flex 4中的自定义预加载器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!