Flex 项目中的 css、swf 和外观 mxml 文件位置
我有一个 FLEX 4 项目。
由于所有 css、swf 和皮肤 mxml 文件都放在一个文件夹中,它变得很麻烦。我想将 css 放在 css 文件夹中,并在 Skins 文件夹下,我想要 swf 文件夹,并且皮肤 mxml 文件将放在皮肤文件夹本身的根目录中。
我想知道这是否是处理文件位置的正确方法。因为它在 css 文件中,我现在必须指定 swf 的路径,例如... /skins/myswf.swf
所以我也想知道这在接口运行时是否会出现任何性能问题?
感谢您指导我找到最合适的方法。
I have a FLex 4 project.
Its becoming cumbersome due to all css, swf and skins mxml files put in ONE folder. I want to separate css in a css folder and under the skins folder, I want to have the swf folder and the skins mxml files will be put in the root of the skin folder itself.
I want to know if this is the right way to handle files location. Because as it is in the css file, I now have to specify the path to the swf as for example... /skins/myswf.swf
So I also want to know if this will have any performance issue at runtime of the interfaces?
Thanks to guide me to the most appropriate way.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我发现创建一个单独的库项目来存储所有主题是最好的。这样您就可以让多个应用程序引用相同的样式和外观。它还迫使您组织代码,这有时可能令人望而生畏。
这对于跨平台使用相同的主题也特别有用,例如......想象一下一个移动应用程序、一个本机应用程序和一个网络应用程序都使用相同的样式,非常甜蜜吧?
请参阅我所附的示例工作区屏幕截图..并且互联网上有大量有关创建 Flex 库项目的信息。
I've found that creating a separate library project to store all of your theme is the best. This way you can have multiple applications reference the same styles and skins. It also forces you to organize your code, which can sometimes be daunting.
This is also especially useful for using the same theme across platforms, for example... imagine a mobile app, a native app, and a web app that all use the same styles, pretty sweet right??
See my attached screenshot of an example workspace.. and there is a ton of info out on the interwebs about creating a flex library project.