如何从我的 Flex 应用程序中提取所有默认皮肤/样式/图标等?
我正在开发一个 Flex 应用程序。由于我不是一个非常有才华的图形设计师,因此我将所有样式等保留为默认值。一旦我完成了应用程序,我想把它连同 Flex 放入我的应用程序中的所有字体、图标、样式等一起交给图形设计师,这样她就可以将它们交换出来,使我的应用程序变得漂亮并为其设置主题到我的 CI。
另外,我想使用这种方法作为稍后阶段可互换主题的基础。
我的问题实际上分为两个部分:
a) 如何提取应用程序中使用的所有资产(不仅仅是 Flex 框架捆绑的所有资产),
b) 如何提取弄清楚哪个资产在哪个地方使用,这样设计人员就不必猜测和逆向工程。
还有第三部分(如何重新打包资产以使它们在运行/编译时可交换),但我想我大致知道它是如何工作的。
I'm developing a Flex application. Since I'm not a very talented graphical designer, I leave all stylings etc. at their defaults. Once I finish the app, I would like to give it to a graphical designer, together with all the fonts, icons, styles etc. that Flex has put into my app, so she can swap them out and make my app pretty and theme it to my CI.
Also, I'd like to use this approach as the foundation for interchangeable themes at a later stage.
There's two parts to my question, really:
a) how do I get all the assets that are used in my app (not simply all that the Flex framework has bundled) extracted, and
b) how do I figure out which asset is used in which place, so the designer doesn't have to guess and reverse engineer.
There's a third part (how do I repackage the assets to make them swappable at run / compile time), but I think I know how that works, roughly.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不相信你能做到这一点。您必须自己设置蒙皮。组件中使用的默认图形内置于 Flex 框架中,并在运行时使用绘图 API 生成,而不是嵌入图形。
最好的选择是使用 css 和支持换肤的图形框架,例如 degrafa ( http://www.degrafa .org/)。
如果您想查看为 Flex 3.x 生成基础皮肤的代码,您可以查看此处的 svn 存储库 - http://opensource.adobe.com/svn/opensource/flex/sdk/trunk/frameworks/projects/halo/
I don't believe you can do that. You will have to set up skinning yourself. The default graphics used in the components are built into the flex framework and generated at runtime using the drawing api instead of embedding graphics.
Your best bet is going to be to use css and a graphics framework that supports skinning like degrafa ( http://www.degrafa.org/ ).
If you want to check out the code that generates the base skin for flex 3.x you can have a look in the svn repo here - http://opensource.adobe.com/svn/opensource/flex/sdk/trunk/frameworks/projects/halo/