views:

1232

answers:

2

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?

+1  A: 

The Ajaxian blog had a post about this today.

http://ajaxian.com/archives/the-state-of-svg-browser-support-using-flash-for-svg-in-internet-explorer

salt.racer
+1  A: 

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.

Jenko