Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to packing image files(png, jpg) into swf, then game can load files easily. But I want to do this by a Makefile, not FLASH CS.
Do you know any command line swf tool set can do that? And can I packing XML files into it as well?

share|improve this question
Have a look at Flex, I guess – o0'. Jan 13 '11 at 11:23
up vote 1 down vote accepted

Besides SWFMill, there's also Sam HaXe. Haven't used it (yet), but I ran into some obscure problems with SWFMill at some point so I'll be trying SamHaXe in the near future instead. According to the documentation, you can embed arbitrary (binary) files with optional zlib compression, so embedding xml files shouldn't be a problem.

share|improve this answer

Flex SDK has support for command-line compilations because it is a compiler. And then you could be interested also in Mike Chambers Flash Command

share|improve this answer

SWFMill is the tool to use.

And you might also be interested in developing with Haxe.

share|improve this answer
+1. A quick question: Can I pack a xml file (e.g foo.xml) into a swf by SWFMill? – Huang F. Lei Jan 14 '11 at 2:09

I've done this quite a lot using the standard Flex SDK. With a bit of python or something else you can even generate some nice class stubs to improve your work flow with the end product.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.