<p>We have a program that produces several SWF files, some CSS and XML files, all of which need to be deployed for the thing to work.</p>

<p>Is there a program or technique out there for wrapping all these files together into a single SWF file?</p>

[{'answer_id': 68474, 'author': 'Brent', 'author_id': 10680, 'author_profile': 'https://Stackoverflow.com/users/10680', 'pm_score': 0, 'selected': False, 'text': '<p>I think you can just drag them into the library of your main swf and make references to them. At least the other SWFs you can, not sure about the CSS and XML.</p>\n'}, {'answer_id': 178420, 'author': 'Pedro', 'author_id': 15524, 'author_profile': 'https://Stackoverflow.com/users/15524', 'pm_score': 0, 'selected': False, 'text': "<p>You can use the flex sdk and the [EMBED ] tag for all those files, as for the xml and css you can just compile them in the wrapper swf produced by flex. It works by having a 'skeleton' mxml file that will be injected with the css and xml, and then embed the swf files.</p>\n"}, {'answer_id': 192919, 'author': 'Theo', 'author_id': 1109, 'author_profile': 'https://Stackoverflow.com/users/1109', 'pm_score': 1, 'selected': False, 'text': '<p>If you use the Flex compiler (<code>mxmlc</code> or FlexBuilder) you can embed SWF files and create them at runtime, more or less like you would create any display object:</p>\n\n<pre><code>package {\n\n\n  public class Assets {\n\n    [Embed(source="another.swf")]\n    public var another : Class;\n\n  }\n\n}\n</code></pre>\n\n<p>The code above embeds the file <code>another.swf</code> and makes it possible to create it in another SWF, like this:</p>\n\n<pre><code>package {\n\n  import flash.display.Sprite;\n\n\n  public class MyFancySite extends Sprite {\n\n    public function MyFancySprite( ) {\n      var theOther : DisplayObject = new Assets.another();\n\n      addChild(theOther);\n    }\n\n  }\n\n}\n</code></pre>\n\n<p>CSS, XML and any other file can be embedded in a similar fashion. Here\'s a description: <a href="http://livedocs.adobe.com/flex/3/html/help.html?content=embed_4.html" rel="nofollow noreferrer">http://livedocs.adobe.com/flex/3/html/help.html?content=embed_4.html</a></p>\n'}, {'answer_id': 195260, 'author': 'matt lohkamp', 'author_id': 14026, 'author_profile': 'https://Stackoverflow.com/users/14026', 'pm_score': 0, 'selected': False, 'text': "<p>using flex to easily embed them is a good way to go, and if that doesn't sound like fun, think of it this way - XML and CSS data is really just a big long string - so hard-code the string data as a variable inside of your project, and use it as normal.</p>\n"}]
['https://Stackoverflow.com/questions/68444', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/6277/']