开发者

How to display SVG in FLEX

开发者 https://www.devze.com 2023-02-18 18:15 出处:网络
There are any way to display dynamically lo开发者_如何学JAVAaded SVG in FLEX?There\'s no \"native\" way to load and display SVG files dynamically.

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?

0

精彩评论

暂无评论...
验证码 换一张
取 消