Is there a SVG to MXML Converter?

时光总嘲笑我的痴心妄想 提交于 2020-01-03 01:45:19

问题


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


回答1:


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




回答2:


yes, there are few libraries but i haven't come across any mature one- - http://code.google.com/p/as3svgrendererlib/ - http://www.degrafa.org/ - http://code.google.com/p/svg-viewer/ - http://labs.zavoo.com/?p=65




回答3:


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!



来源:https://stackoverflow.com/questions/702557/is-there-a-svg-to-mxml-converter

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!