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: [email protected] 
[[email protected]] On Behalf Of Henrik Andersson 
[[email protected]]
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
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to