tags:

views:

941

answers:

5

I was wondering if anyone knows of any libraries for programatically creating flash swf files.

Or for creating swf from svg.

+4  A: 

This sounds like a perfect job for swfmill I think you'll find it will allow you to do both, convert SVG to SWF and to create SWF files from code.

Chris Blackwell
+3  A: 

Ming, which is written in C can generate SWF content. There are bindings for Ming in Perl via the SWF module and I believe it can be used with PHP as well. As far as SVG to SWF conversion, it looks like there's a Python program that can do that, but it sounds as though it's still a bit rough around the edges.

theraccoonbear
+1  A: 

You should check out SwfDotNet . It's done in .NET.

Here's an example check this out:

How to transform JPEG to SWF on the fly

CJCraft.com
+1  A: 

It seems swfmill is not as good as the standard mxmlc to convert and embed SVG files. I tested it on some simple files and it lost all color and font information.

For me, the question is still relevant, because mxmlc also loses some attributes of my SVG files, mainly gradients...

+1  A: 

Hi,

You can use Aspose.Flash to create SWF files from scratch or from an SVG file. You can get complete help from the Programmer's Guide and Demos. You can also ask question in our forums for any technical issues or concerns.

I'm a member of the Aspose.Flash team.

Code.Guru