How to use defaults.css?

  • I am using Flash Builder 4.7 with Flex 4.6 and Adobe AIR 3.7
  • I have a library project that produces a SWC.
  • I have included a defaults.css file in the root of the src folder.
  • When I try and use this SWC in an application it produces a warning:
  • The swc 'C:PathToMySWCmy.library.swc' has style defaults and is in the library-path, which means dependencies will be linked in without the styles. This can cause applications, which use the output swc, to have missing skins. The swc should be put in the external-library-path.

    I don't really understand the warning message, or what to do about it. The effect of the warning is that the components in the SWC do not have their default styles applied.

    I Have been trying to follow Applying styles from a defaults.css file - under last heading on the page.

    All I'm trying to do here is create a SWC with a component that has default styles. How can I do that?

    链接地址: http://www.djcxy.com/p/35438.html

    上一篇: 将Flash Builder项目导入FDT

    下一篇: 如何使用defaults.css?