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

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

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.

This question is in the General Section. Responses must be helpful and on-topic.

Your answer will be saved while you login or join.

Have a question? Ask Fluther!

What do you know more about?
or
Knowledge Networking @ Fluther