Eugene Burtsev
Eugene Burtsev

Reputation: 1475

How to display SVG in FLEX

There are any way to display dynamically loaded SVG in FLEX?

Upvotes: 5

Views: 2965

Answers (2)

bmleite
bmleite

Reputation: 26880

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:

Upvotes: 8

www0z0k
www0z0k

Reputation: 4434

did you try spark.primitives.Path?

Upvotes: 2

Related Questions