What I need to do is to make a mirror image of the
BitmapData and leave is as one single BitmabData.

Hi Claudia,

I did something similar in AS3, but I'm quite sure you can use it for
your needs too.

In your case, it would look something like this:

//-------------------------------
var mirrorMatrix : Matrix = new Matrix( -1, 0, 0, 1, 50, 0 );
var imageMirror : BitmapData = new BitmapData( 50, 100 );
imageMirror.draw( image, mirrorMatrix );
image.copyPixels( imageMirror, new Rectangle( 0, 0, 50, 100 ), new
Point( 50, 0 ) );

owner.addChild( new Bitmap( image ) );
//-------------------------------

Daniel Cascais
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to