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?
相关问题
- Flex 4 spark Panel has an ugly gray top part
- Preloading of html web page or non-flash web appli
- Programatically enable/disable menuBar buttons in
- List with different column count
- Flex Custom Event dispatching
相关文章
- changin the default width and height of the dropdo
- How can I copy an ArrayCollection of transfer obje
- How exactly does link rel=“preload” work?
- jQuery ajax() preloading multiple things
- Does Flash Builder 4 now use AIR 2?
- Flex 4 Scroller
- MP4 in Video.js not playing until fully loaded
- Communication between Flex module and Application
There is a Flex 4 Custom Preloader code sample here http://www.leavethatthingalone.com/blog/index.cfm/2009/11/11/Flex4CustomPreloader
I've been using this example in many Flex3 projects. It's still working with Flex4 sdk:
I can remember where I get it from. And you are right when you say it's important that this script is NOT referencing anything...
CustomPreloader
LoadScreen
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