Actionscript - combining AS2 assets into a single SWF

Posted by Justin Bachorik on Stack Overflow See other posts from Stack Overflow or by Justin Bachorik
Published on 2008-10-13T16:09:00Z Indexed on 2010/04/17 23:33 UTC
Read the original article Hit count: 196

Filed under:
|
|
|

Hi guys,

I have a flash project that I'm trying to export as a single SWF. There's a main SWF file that loads about 6 other SWFs, and both the main and the child SWFs reference other external assets (images, sounds, etc). I'd like to package everything as a single .swf file so I don't have to tote the other assets around with the .swf.

All the coding is done in the timeline, but the assets haven't been imported into the Flash Authoring environment and I don't have time to do that right now (there are too many references to them everywhere). I'm hoping that there's just an option I'm missing that allows this sort of packaged export, but I haven't found anything like that.

I don't have access to Flex or mxmlc (and as the AS is timeline-based, they wouldn't necessarily help me). Any thoughts?

Thanks!

PS...if there's no way of doing exactly what I'm saying, I could deal with having all the assets in a "assets" folder or something like that, so I'd just be toting around main.swf and an assets folder. The problem here is that all the references to the assets assume that they're in the same folder as the main.swf file, so everything's assumed to be local...is there a way to change the scope of all external references in Flash (so, for example, all local references in the code are actually searched in /assets)?

© Stack Overflow or respective owner

Related posts about actionscript

Related posts about swf