There are any way to display dynamically lo开发者_如何学JAVAaded SVG in FLEX?
There's no "native" way to load and display SVG files dynamically.
From the latest 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
Alternatively you can use third-party libs to do the work, such as:
- http://code.google.com/p/svgweb/
- http://code.google.com/p/as3svgrendererlib/
did you try spark.primitives.Path
?
精彩评论