A good tutorial about a flash app that exports a selected movieclip to a bitmap image?
i have a idea about doing a flash app that lets you personalize pics, posting notes on it and then export it
Observing members:
0
Composing members:
0
1 Answer
I don’t know of any tutorials but it is actually pretty simple. Any display objects that subclass DisplayObject
also implement the IBitmapDrawable
interface and thus can be passed to a BitmapData
‘s draw()
method. From there you can use one of the PNG or JPEG encoder libraries out there (Adobe’s own utils library on Google Code is best) to compress the file. Then you can send it as a binary stream over a socket connection or Base64 encode it and post it to your web server via the methods and classes in the flash.net.*
package. I’ve made a few apps like this already for various clients. Feel free to message me if you’ve got specific questions.
Answer this question 
This question is in the General Section. Responses must be helpful and on-topic.