Hi!
I’ve tested Senocular Transform tool since 2 weeks (build 2010.12.07 (beta) available) and I founded something strange when I have set this.tool.transformMethod == “properties”;. Try this code:
var lab:TextField = new TextField();
lab.text = "some Text" ;
lab.width = 200;
lab.height = 40;
addChild(lab);
// create the Transform Tool
var tool:TransformTool = new TransformTool(new ControlSetStandard());
tool.transformMethod = "properties";
tool.negativeScaling = false;
addChild(tool);
// select the box with the transform tool when clicked.
// deselect when clicking on the stage
lab.addEventListener(MouseEvent.MOUSE_DOWN, tool.select);
stage.addEventListener(MouseEvent.MOUSE_DOWN, tool.deselect);
There’s a problem with resizing the Label. I cannot control resizing when I move my mouse.
There’s no problem if I change Label into Sprite from the example at http://www.senocular.com/flash/tutorials/transformtool/ .
I’ve founded that the problem is in the method applyTransformToTarget in TransformTool class (tool.transformMethod == TRANSFORM_PROPERTIES;). If I change the lines:
_target.width = bounds.width * ratioX;
_target.height = bounds.height * ratioY;
into
_target.width = bounds.width ;
_target.height = bounds.height ;
the problem is gone but then _target is not actualized width and height property (is still the same size) after next selecting the target.