Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to render svg data in a swf at runtime?

I'd like to render to svg data in a swf at runtime (not in Flex - not using degrafa) - how would I go about doing that?

like image 782
Paul Mignard Avatar asked Dec 15 '25 21:12

Paul Mignard


1 Answers

If ActionScript 2:

Use the com.itechnica.svg (PathToArray) library to load SVGs at SWF runtime and display them (uses XML for SVG parsing):

Using SVG Path Data in Flash, Code download button on the right pane.


If ActionScript 3:

Use the com.zavoo.svg (SvgPath) library to load SVGs at SWF runtime and display them (uses RegExp for SVG parsing):

Source code for SvgLoad and SvgDraw, Code download button on the bottom-left.

like image 87
Robin Rodricks Avatar answered Dec 18 '25 09:12

Robin Rodricks



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!