AS3/AIR - Export horizontally flipped BitmapData

I’ve created a little AIR application that captures video from a webcam and exports stills of the video as JPGs. This works fine but I would like to flip the bitmapdata before it is exported so that the exported jpg is a reverse image of the captured video. Any ideas?


var bmd:BitmapData = new BitmapData();
var bm:Bitmap = new Bitmap();

bmd.draw(myVideo);
bm.scaleX = -1;

:thumb:

That code only flips the display object. The exported image is still reverse of what I want it to be.

Either redraw the bitmap or use this loop:
http://forum.java.sun.com/thread.jspa?threadID=574937&messageID=2866672