views:

19

answers:

2

I will not be hosting the .swf file and I would like to include images using Flash Builder 4. The images appear in a folder in the exported version and I'm not sure how to "embed" them into the .swf (so that I can deploy the file to sites like Kongregate, etc.)

Seems like it should be simple, but my Google fu is currently poor.

Edit: Note, I would like to continue using the Flex framework, which is what I am using now.

+2  A: 

How to embed images using AS3

http://stackoverflow.com/questions/1053546/howto-embed-images-in-actionscript-3-flex-3-the-right-way/1053563#1053563

How to embed images using MXML

http://kb2.adobe.com/cps/192/tn_19243.html

Adrian Pirvulescu
Wow, that's short and neat! I saw the embed stuff before but I didn't know it actually packaged it inside the swf file. I will check it out later today and let you know the results.
Organiccat
Great! Please note that you can embed also different files, like videos, sounds or fonts ;)
Adrian Pirvulescu
Thanks, this worked out great, I'm sure I'll use it for sounds later on
Organiccat