Adding custom icons to custom created files

Hi all,

my first post and I know this is a longshot, but hopefully an interesting challenge for some veterans!

So - I’m authoring a design application using Flash CS3 and Zinc. Its going surprisingly well so far, I’m using greensock’s fantastic transform manager, the wonderful AlivePDF and nochump’s zip library as part of it.

I’m using zip files as a custom project storage format, I serialize all the assets imported into the design app as bytearrays and store them in a zip along with a layout file ( xml ) that represents the entire project the user has been working on so they can save it locally and go back to it at a later time. I just assign a custom file extension to the zip files to make them look like a bespoke file format, but they’ll open in winzip if you just change the extension.

All of the above is working very well so far, but I’d like to add a custom file icon to the saved project files ( zips ). The icon would have to be embedded rather than assigned by the OS, as this app will run from a CDROM and not be installed on the user’s machine.

Anyone know how to embed a custom icon into a file in AS3?

I would consider ditching the zip part of this and saving the files as raw bytearrays if someone can think of a viable way to give these files an icon of their own. If it helps at all, this application is provisionally targeted only at windows machines, but we’re considering doing a mac version too.

Any help much appreciated