Flex 4中的自定义预加载器? [英] Custom Preloader in Flex 4?

查看:209
本文介绍了Flex 4中的自定义预加载器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人在Flex 4中成功实现了自定义预加载器?根据我的经验,当我在应用程序标记中使用preloader =com.foo.MyPreloader指定自定义预加载器时,预加载器在SWF完全下载之前不会显示,从而击败了预加载器的目的!也许这是一个仍然在测试Flex 4框架中的bug?

解决方案

我觉得愚蠢的...我引用我的主要应用程序类从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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆