加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

SWF load SWF 找不到外观

发布时间:2020-12-15 06:48:31 所属栏目:百科 来源:网络整理
导读:断在 SkinnableComponent中? throw(new Error(resourceManager.getString("components","skinNotFound",[this]))); 1.为子SWF添加-keep-all-type-selectors选项,会增加子swf大小,没有用到的样式外观中的内嵌的资源也会编译进去。 这个方法是大部分网上看到

断在 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);

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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读