Re: [flexcoders] Unable to do matrix transform to flip an image - it vanishes

2009-07-24 Thread thomas parquier
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

[flexcoders] Unable to do matrix transform to flip an image - it vanishes

2009-07-23 Thread jomorano06
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.