Hi,
"scale()" method takes multipliers as arguments, so 0 as "y" factor will set
height to 0. You should use "scale(-1,1)".
thomas
---
http://www.web-attitude.fr/
msn : thomas.parqu...@web-attitude.fr
softphone : sip:webattit...@ekiga.net
téléphone portable : +33601 822 056
2009/7/24 jomorano0
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.
2 matches
Mail list logo