views:

36

answers:

1

hi, i want to convert a swf to image on my website. a user makes some changes on the stage and if he press a button "get image link", the swf stage will be converted to an image and its image link will appear within a box. like imageshack.. so user can use it in forums as image. how can i do this? i even dont know it is about flash or html...

+1  A: 

Have a good read of Henry Jones - Using the AS3 Jpeg Encoder. He explains exactly what you need, plus some!

You basically what to use the BitmapData class to convert you displayobject into image data. Then you can use JPGEncoder from AS3 Core Lib, to encode that data into a JPEG. Then with a bit of serverside code you can send that JPEG to that server.

TandemAdam