AS3SVGRenderer is a library to render SVG files.  It parses and translates svg elements to Flash display objects, rendering it and allowing the interaction with the output. The library supports basic shapes and paths, as well as texts, right-to-left scripts, subscript, superscript.
It also has three text rendering engines (TextField, TLF, FTE), supporting CFF and non-CFF fonts. The lib has coordinates system rules, transformations and units, allows the use of masking and clipping, filling, strokes, gradients and marker symbols. It also supports basic document structure (g, defs, symbol, use, image). It’s possible to use filters as ColorMatrix and GaussianBlur. The rendered display objects keep the svg structure, so the developer can code mouse/touch interactions with svg elements.
Sample
ProcessExecutor.instance.initialize(stage); var svg:SVGDocument = new SVGDocument(); svg.load(urlStringOrUrlRequest); // or svg.parse(myLoadedSVGString); addChild(svg);
Andrey Kyznetsov liked this on Facebook.
Just curious, I’m sure you’ve made some improvements, but how does this compare performance and capability-wise to the SVG classes from Degrafa? For its time, it was an extremely robust toolset, even if it was a bit buggy from time to time.
Hi, Nick! I am not the author of AS3SVGRenderer, Lucas Lorentz is https://github.com/LucasLorentz/AS3SVGRenderer. You can ask him directly.
About Degrafa, I didn’t know about the existence of that lib, but it seems to be a great and consolidated lib.