Replies: 8 comments 29 replies
-
|
(seems I've already asked this same question #697 but if anyone has done anything new would be very interested) |
Beta Was this translation helpful? Give feedback.
-
|
I used this library to encapsulate ANE when loading SVG on the desktop( https://github.com/sammycage/lunasvg ) |
Beta Was this translation helpful? Give feedback.
-
|
Would this work on ios/android as well? Would be supercool to have a svg with all the assets in 1 size and scale it on startup based on the screen size then use it like that... |
Beta Was this translation helpful? Give feedback.
-
|
What about a pure as3 version? |
Beta Was this translation helpful? Give feedback.
-
|
Would be nice to have SVG support natively in AIR - any chance for adding this in a future version maybe @ajwfrost ? |
Beta Was this translation helpful? Give feedback.
-
|
We use a webview on top of the display list to show the SVGs |
Beta Was this translation helpful? Give feedback.
-
|
Recently I tried to fix an old AS3 SVG library. It can be used to display some simple SVGs, although it still has many issues. In fact, its code is not complicated, and it is easy to extend it and implement more features. PRs are welcome. Flash/AIR natively supports vector drawing and E4X, which is very suitable for parsing and rendering SVG. |
Beta Was this translation helpful? Give feedback.
-
|
I compiled the OpenFL SVG Library into a SWC for AS3: https://github.com/Fancy2209/OpenFL-SVG-on-AS3-Test/raw/refs/heads/main/libs/svg.swc It can be used like this, where svgData is a String containing the contents of an SVG file. import format.SVG;
var svgDO:Shape = new Shape();
var svgRenderer:SVG = new SVG(svgData);
svgRenderer.render(svgDO.graphics);Here's an example project using it and FeathersUI OpenFL on AS3: https://github.com/Fancy2209/OpenFL-SVG-on-AS3-Test/ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Anyone know of a good SVG Rendering library? I need to add rendering of svgs to an desktop flex / air app
I've tried an old version of the svgweb toolkit that I had which works for simple svgs but unfortunately it doesn't seem to support some of the more modern features that I need in this case.
Beta Was this translation helpful? Give feedback.
All reactions