Is there a SVG to MXML Converter?

2019-06-07 03:17发布

I'm trying to use an SVG file in my Flex app - but it seems the best way to do that is to convert it to MXML. However, I cannot find an SVG to MXML converter. There seem to be a number of SVG to XAML converters (for Silverlight/C#), but I can't find anything analogous for Flash/Flex.

Any help would be appreciated.

Thanks, Karthik

3条回答
成全新的幸福
2楼-- · 2019-06-07 03:42

You should be able to Embed the SVG directly, without a converter.

查看更多
放荡不羁爱自由
3楼-- · 2019-06-07 03:47
可以哭但决不认输i
4楼-- · 2019-06-07 04:01

Well, the SVG is an XML file, basically. So if you want to import it at runtime, you could read it as an XML file and then use the AS3 drawing API to render it. Check out this ActionScript 3 SVG renderer on Google Code!

查看更多
登录 后发表回答