PDA

View Full Version : Packing external content


amindiary
02-12-2012, 06:04 AM
Hi, I need to pack my external content as a Data file or something else!
But i don't know how do this and how can i read from packed library?

northcode
03-03-2012, 05:39 AM
How much content are we talking about? You can always embed resources (in AS3) in code and load it directly from the ByteArray at runtime. I wouldn't recommend this if you have a lot of data, but for small chunks it works very nicely. I've included one link below, you will find a lot more if you go hunting .

http://dispatchevent.org/roger/embed-almost-anything-in-your-swf/

If that doesn't appeal to you, check out a swf2exe tool like SWF Studio (http://www.northcode.com/swfstudio.php) which will let you include whatever files you want in your EXE. SWF Studio can automatically extract the files for you at startup or you can extract the on demand in code.

amindiary
03-03-2012, 05:46 AM
I used MDM Zinc 3.0 file library and solved! thanks anyway.

northcode
03-03-2012, 07:44 AM
Sorry about the late reply but glad you got it sorted out :)