解决方法
没有“本地”方式动态加载和显示SVG文件.
从最新的flex documentation:
SVG drawing restrictions
- You can only embed an SVG file in an application; you cannot load one at run time
- SMIL and animation are not supported
- Masking and filters are not supported
- Pattern Fill and some advanced Gradients are not supported
- Interactivity and scripting is not supported
- SVG text is rendered as nonsearchable and nonselectable SWF shape outlines,meaning it is not rendered as native text in Flash Player or AIR
或者,您可以使用第三方库来完成工作,例如:
> http://code.google.com/p/svgweb/
> http://code.google.com/p/as3svgrendererlib/