Search code examples
flashsvgadobe-illustrator

swf to Illustrator friendly format (vector)


So I'm making a drawing app that uses flash. I want to be able to export my drawing into an illustrator friendly format.

I'm thinking I will need to record the shapes drawn with a "history" and then export those either via text/xml/bytearray.

Have any fellow overflowers heard of tool to make my life easier? Thanks!


Solution

  • If you want to export to something that Illustrator can import as defined shapes and paths then use SVG. You can generate the SVG from Flash (not automatically, manually) and then Illustrator can import it.

    One technique I've seen is to create a wrapper for the underlying Graphics instance on the DisplayObject you're drawing to. Override all the primitive drawing calls (moveTo, lineTo, etc) with your own that record what was done and then call the originals. This way you can have a full history to write out to SVG.