SubjectTransformator To Transform Any DisplayObject

SubjectTransformator class is a simple utility class that lets you transform (rotate, scale, drag) any DisplayObject on stage. As for now, this class may be the subject of change, so please download latest version before use. You can see the demo below in the article…

Usage is pretty simple:

addChild(image); // Bitmap, Loader, whatever...

var transformator:SubjectTransformator = new SubjectTransformator();
transformator.subject = image;
transformator.draggable = true;
transformator.addResizer(iconResize1, SubjectTransformator.POSITION_LT);
transformator.addResizer(iconResize2, SubjectTransformator.POSITION_RB);
transformator.addRotator(iconRotation1, SubjectTransformator.POSITION_RT);
transformator.addRotator(iconRotation2, SubjectTransformator.POSITION_LB);

Demo (click link below to get the source code):

2 comments so far

  1. Klas Lundberg April 28, 2010 12:18

    Cool! I’ve made a similar tool, but unfortunately it’s closed source. It also features depth-swapping by clicking and snapping. You can see it in action at

  2. Jozef Chúťka April 28, 2010 17:31

    Nice, I like that, and those big white eyebowls 😀

Leave a comment

Please be polite and on topic. Your e-mail will never be published.