SWF load SWF 找不到外观

本文探讨了在FlexBuilder中通过调整模块管理器和加载器配置,实现子SWF与父SWF分离应用域,以减小应用程序大小并提高性能。包括使用Keep-all-Type-Selectors选项减少编译冗余,以及在不同场景下选择模块管理器或加载器的最佳实践。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

断在 SkinnableComponent中  throw(new Error(resourceManager.getString("components", "skinNotFound", [this])));

1.为子SWF添加-keep-all-type-selectors选项,会增加子swf大小,没有用到的样式外观中的内嵌的资源也会编译进去。

这个方法是大部分网上看到的。http://bbs.9ria.com/thread-60454-1-1.html


2. 这里还提到使用ModuleManager而不是Loader也可以。 http://forums.adobe.com/thread/483614 

I have built module and application inside Flash Builder by select Project -> Build Project. Not use command line or other task before.

Here is my last result and i will use one of them:

Using ModuleManager:

     Remove all except default -locale en_US at Additional Compiler Arguments at Properties of Project -> Build and Run OK.

Using Loader:

     Add to Additional Compiler Arguments: -keep-all-type-selectors=true

     Change Flex Builder Path -> Library Path -> Runtime share library(RSL)

     - Build and run OK

     (Using this way, flash builder auto generate some rsl file(swf), but the size of app and module  are smaller than).

Manty thank Flex haRui and Darrell Loverin for your helps.


3.子SWF使用和父SWF分离的applicationDomain,默认的父domain或者同domain都不行。
context.applicationDomain = new ApplicationDomain;
loader.load(new URLRequest("***.swf"), context);

这个是我试出来的,我的项目能行。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值