Skin for * cannot be found

本文介绍了一种在Flex4架构中加载模块时遇到的样式丢失错误,并提供了解决方案:通过在编译参数中添加-keep-all-type-selectors选项来确保样式选择器被保留,从而使得模块应用能够正确加载样式。

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

What caused the error?
I was moving one of my modular applications from Flex 3 (Gumbo) to Flex 4 (Spark) architecture. This error happend each time I added a module GUI to the main application. Unfortunately this is all what I found out about this problem.

What is the solution?
Add: -keep-all-type-selectors to your compiler arguments.

Here’s is what documentation says about this argument:
“Instructs the compiler to keep a style sheet’s type selector in a SWF file, even if that type (the class) is not used in the application. This is useful when you have a modular application that loads other applications. For example, the loading SWF file might define a type selector for a type used in the loaded (or, target) SWF file. If you set this option to true when compiling the loading SWF file, then the target SWF file will have access to that type selector when it is loaded. If you set this option to false, the compiler will not include that type selector in the loading SWF file at compile time. As a result, the styles will not be available to the target SWF file.

This is an advanced option.”

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值