Hi y'all,

I am trying to do a horizontal flip transformation of a png image as follows:

var flipMat:Matrix = img.transform.matrix;      
flipMat.scale(-1, 0);
flipMat.translate(img.width, 0);
img.transform.matrix = flipMat;


The idea is to scale by -1 and then move it to the right by the width. I end up 
losing the image however. If I put a box around the image, it goes blank, if I 
remove the box and just have the image, it is nowhere to be seen. The image is 
an PNG and is loaded at the upper left corner of the enveloping HBox.

Any ideas what is going wrong here?



Reply via email to