[Flashcoders] Saving MC as image
I am finding some tutorials for saving a mc as an image - using com.adobe.images.JPGEncoder --- What I am finding seems to show that you need some type of server-side code to actually save the image locally (php, ...) Is there a way to do it all just in Flash? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Saving MC as image
Lehr, Theodore wrote: server-side code ... save the image locally I hope that you see the issue here. Just use a FileRefference instead. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Saving MC as image
Like Henrik says, just use FileReference. http://www.quietless.com/kitchen/dynamically-create-an-image-in-flash-and-save-it-to-the-desktop-or-server/ On Mon, Aug 16, 2010 at 10:01 AM, Henrik Andersson he...@henke37.cjb.netwrote: Lehr, Theodore wrote: server-side code ... save the image locally I hope that you see the issue here. Just use a FileRefference instead. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Saving MC as image
Thanks - that is doing the trick... One issue: I am doing: var file:FileReference = new FileReference(); var jpgSrc:BitmapData = new MitmapData(mc.width, mc.height); jpgSrc.draw(mc); var jpgEncoder:JPGEncoder = new JPGEncoder(85); var jpgStream:ByteArray = jpgEncoder.encode(jpgSource); file.save(jpgStream, 'test.jpg'); The issue I am having is that the mc is not lining up with the image... the image seems to be capturing the stage at 0,0 which is only getting like the top right of the mc anyway to line the mc up with the jpg? From: flashcoders-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Henrik Andersson [he...@henke37.cjb.net] Sent: Monday, August 16, 2010 1:01 PM To: Flash Coders List Subject: Re: [Flashcoders] Saving MC as image Lehr, Theodore wrote: server-side code ... save the image locally I hope that you see the issue here. Just use a FileRefference instead. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders