General Question

manuel_alarcon's avatar

A good tutorial about a flash app that exports a selected movieclip to a bitmap image?

Asked by manuel_alarcon (299points) August 10th, 2008
1 response
“Great Question” (0points)

i have a idea about doing a flash app that lets you personalize pics, posting notes on it and then export it

Topics: , , ,
Observing members: 0
Composing members: 0

Answers

paulc's avatar

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

Login

or

Join

to answer.

Mobile | Desktop


Send Feedback   

`