Flex 的 FXG 编辑器
我见过的唯一 Flex FXG 编辑器是 7jigen 的 ,在线工作或 作为 Flex 应用。
有人知道有不同的吗?我认为它可以在 Illustrator 中完成,但这并没有真正提供简单的导出到 Flex 类型选项,只是给出坐标。
The only FXG editor I've seen for Flex is by 7jigen, works online or
as a Flex app.
Does anyone know of a different one? It can be done in Illustrator I think, but that doesn't really offer a simple export to Flex type option, just gives coordinates.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
据我所知,你最好的选择(如果你不想使用 Illustrator)是获取 Inkscape 并安装“另存为 FXG”插件。向 JazzyNico 致敬,感谢他编写了一个基本上是怪物 SVG 到 FXG“XSL 转换”的东西(即 XSLT)。
如何安装:
将这两个文件拖放到 Inkscape“扩展”文件夹中。
$HOME/.config/inkscape/extensions
C:\Documents and Settings\User\Application Data\Inkscape\extensions
/Applications/Inkscape.app/Contents/Resources/extensions
重新启动 Inkscape,您将在“文件 > 另存为”对话框中找到一个新的 FXG 条目。
这个插件对我和我的工作来说都是一个福音,因为多年来我已经对 Inkscape 感到非常满意。
不幸的是(这可能只是我的设置),我发现每当我另存为 FXG 时,几分钟后 Inkscape 就会崩溃(我真的应该发布错误报告)。以防万一您遇到同样的问题,请确保转到“保存”首选项并打开自动备份。另外,请记住,SVG 中的某些构造在 FXG 中没有等效项。别问我它们是什么,老实说我不记得了。
As far as I know your best bet (if you don't want to use Illustrator) is to grab Inkscape and install the "save as FXG" plug-in. Hats off to JazzyNico for writing what is basically a monster SVG to FXG "XSL Transform" (i.e. XSLT).
How to install:
Drop both files in your Inkscape "extensions" folder.
$HOME/.config/inkscape/extensions
C:\Documents and Settings\User\Application Data\Inkscape\extensions
/Applications/Inkscape.app/Contents/Resources/extensions
Restart Inkscape and you'll find a new FXG entry in the "File > Save As" dialog.
This plugin has been a boon for me and my work, since I've become quite comfortable with Inkscape over the years.
Unfortunately (and this may just be my setup), I've found that whenever I save as FXG, a few minutes later Inkscape crashes out (I really should post a bug report). Just in case you have the same problem, make sure you go to the "Save" preferences and turn on auto-backup. Also, keep in mind that certain constructs in SVG have no equivalent in FXG. Don't ask me what they are, I honestly can't remember.
我已经使用此过程生成了大量 FXG 资源,并将其导入到我的 Flex 项目中。
1.在Flash CS5中绘制形状
2. 拆分形状 (Ctrl+B)
3.选择形状
4. 文件->导出->导出选择
5.另存为FXG
然后您可以将它们直接导入 Flex 中,瞧!很高兴出发!
I have used this process to generate a ton of FXG assets that I have imported into my Flex projects.
1. Draw the shape in Flash CS5
2. Break the shape apart (Ctrl+B)
3. Select the shape
4. File -> Export -> Export Selection
5. Save as FXG
You can then import them directly into Flex and voila! Good to go!
使用 Inkscape SVG 编辑器:它将允许您从 开始将 svg 转换为 fxg版本 0.49 感谢 svg2fxg 插件。
同时(版本 0.48)您可以按照 RIAGrande 的说明手动安装 svg2fxg 插件:
安装 Inkscape http://inkscape.org/download/
从此处获取 2 个 svg2fxg 插件文件(来自 head 存储库):
<块引用>
http:// bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/view/head:/share/extensions/svg2fxg.inx
http:// bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/view/head:/share/extensions/svg2fxg.xsl
并将它们复制到 Inkscape 扩展文件夹(C:\Program Files (x86)\Inkscape\share\extensions on Windows 7)
您现在可以启动 Inkscape 并会获得一个新的“文件 -> 另存为 -> Flash XML 图形 (*.svg)”条目。
我成功地测试了它并在 iPhone 上使用了 fxg 生成的资源:它工作正常:-)
Use Inkscape SVG editor: it will allows you to convert svg to fxg starting version 0.49 thanks to the svg2fxg plug-in.
In the mean time (version 0.48) you can install the svg2fxg plug-in manually as explained by RIAGrande:
Install Inkscape http://inkscape.org/download/
Get the 2 svg2fxg plug-in files from here (from head repository):
and copy them in Inkscape extension folder (C:\Program Files (x86)\Inkscape\share\extensions on Windows 7)
You can now start Inkscape and will get a new "File -> Save As -> Flash XML graphics (*.svg)" entry.
I successfully tested it and used the fxg generated assets in on IPhone: it works fine :-)
首先,RIAGrande的回答是正确的。我按照他的步骤进行操作,结果成功了。这里有一些更多信息供将来参考:
FXG 的 Inkscape 错误报告以及补丁下的可用下载可以在以下位置找到:
https://bugs.launchpad.net/inkscape/+bug/625140。这些文件(未压缩时)应该复制到 RIAGrande 提到的位置
我制作了我的小图标,但他导出的 FXG 文件没有缩进,因此使用 http://xmlindent.com/ 格式化文件,下载,复制到我在 Flash Builder 中的项目并重命名为 .fxg 文件。
要使用 FXG 文件,请执行以下操作:
对于后代,这里是图标和生成的 Inkscape FXG 代码:
Firstly, RIAGrande's answer is correct. I followed his steps and they worked. Here is a little more information for future reference:
The Inkscape bug report for FXG with downloads available under Patches can be found at
https://bugs.launchpad.net/inkscape/+bug/625140. These files (when uncompressed) should be copied to the location mentioned by RIAGrande
I made my little icon, but he exported FXG file was not indented, so used http://xmlindent.com/ to fomat the file, Downloaded, copied to my project in Flash Builder and renamed as .fxg file.
To use the FXG file, did the following:
For posterity, here is the icon and resulting Inkscape FXG code: