问题
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