i have another piece for more advanced guys than me 😉
I am developing a simple flash application to create your own coat of arms. When finished creating, it would be nice to save it as an image to a client’s computer or to a database, i am not sure yet. The problem is making the image from swf content – i mean not the whole content, just a part of it, where the COA is. I have found some eamples on the web using some image encoders and PHP, but i cant’t understand how it works. Could anybody be so kind to explain me the basic principles of this? I want to make it as simple as possible.
First, draw the image (Sprite or MovieClip, etc) into a BitmapData:
Then, use e.g. as3corelib to encode the BitmapData into PNG or JPG files.
Then, for Flash 10, you can immediately get the user to save the image to a file, using FileReference’s save method.