• Embedding programmatic skins in CSS and compiling to SWF


    提问:

    I am experimenting with using external CSS files compiled as SWF. However, I have a problem.

    My css files use programmatic skins, and FlexBuilder cannot resolve the class references.
    So if I have border-skin: ClassReference("com.border.SimpleGradientBorder");
    it will choke when trying to build the swf because it doesn't know how to find it.
    Obviously this works fine when compiled into the application, since my project properties resolves the above path.

    Is there a way to embed the above class, and if so what is the syntax?


    解答:

    You may need to just move your CSS file into the root level of your source. I think I recall having the same problem with path resolution, and that solved it. Your code appears to be correct.


    Good on you for compiling a separate swf, because if you actually start referencing embedded graphics and programmatic skins in your app, you'll be compiling them every single time you build, which will make your build slower.... and slower....... and slower.....

    原文摘自:http://www.actionscript.org/forums/showthread.php3?t=181187

  • 相关阅读:
    redis整合spring(三)注解的方式缓存
    redis整合spring (二)
    redis整合spring (一)
    Redis面试
    JVM(六)JVM调优
    JVM故障(二)GC导致cpu飙高
    JVM故障(一)CPU跑满定位
    JVM 故障调优
    洛谷-P2141 珠心算测验
    洛谷-P1205 [USACO1.2]方块转换 Transformations
  • 原文地址:https://www.cnblogs.com/iihe602/p/1622975.html
Copyright © 2020-2023  润新知