質問

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!

役に立ちましたか?

解決

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.

他のヒント

Install a PDF printer driver like this one http://www.pdf995.com/ (it's free with a few annoying ads)

Export your FLA > SWF

Open SWF and right click on the SWF window > Print

Choose the PDF printer driver and print to file

Open the resulting PDF in Illustrator CC

Vectors are preserved!

Joshua Davis used to save/print it as a pdf/PostScript file, and then open it in Illustrator...

[EDIT]

And it seems that it is still possible.

I installed a PostScript printer that prints to file (kb2.adobe.com/cps/404/kb404883.html), I am running windows vista and installed a Canon PS-NX5000.

I've tried 2 different swfs in the standalone player, one which draws rectangles and another which draws lines.

Right-Click>Print...>Canon PS-NX5000>Print.

Enter a file name with a .ai extension. Open in Illustrator. Select all and ungroup/break apart. Assets are vectors. Job Done!

I use this online tool http://iiistudio.com/convert2svg/

It works the best and save the result in SVG format you can directly open with Adobe Illustrator, and it's made in flash application. You can download the swf file and it could work locally without server backend anyway as I guessed it has php or js!

As I tried to import the swf file I exported from Toon Boom Harmony to Adobe Flash, it's into the stage but the vector curves are zig-zagged not what I want. Ans I also tried print the swf to PDF with variety of virtual PDF printer such as Foxit PDF printer, PDF Factory Pro and the results is bad as well, not the original shapes at all.

results are so different in PDF, Flash and swf2svg: https://i.stack.imgur.com/7bJnf.jpg

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top