View Full Version : Scaling and Rotating Image from center
illicit2k1
08-11-2008, 05:23 AM
Hey what would be the best way to scale and rotate an image using the center as an anchor point? This is for flex 3, the image is loaded from a webserver using the Loader class.
illicit2k1
08-11-2008, 09:09 PM
figured this out, using a matrix, first translate to (-imgwidth/2, -imgheight/2) then do your .rotate() and then .scale(), then apply the matrix. for the loader i used loaderObj.content.transform.matrix = m;
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.