AS3: Transform Tool v0.5
Posted September 15, 2006 by senocular
I've decided to upgrade my original Transform Tool originally created in ActionScript 1 to ActionScript 3. Instead of porting it, however, I rewrote it from scratch adding some of the features people requested in the original. These include:
Transform Tool demo and source
- Skew transformation
- Editability of registation point
- Ability to move upon selection
Transform Tool demo and source
I also think the AS3 version is a little easier to use (one would hope). The script in the FLA is simply:
Pretty simple.
More updates to come as I find time to work on this. There are still a lot of things I need/want to do with this.
var tool:TransformTool = new TransformTool();
addChild(tool);
function select(event){
tool.target = (event.target is Sprite) ? event.target as Sprite : null;
}
stage.addEventListener(MouseEvent.MOUSE_DOWN, select);Pretty simple.
More updates to come as I find time to work on this. There are still a lot of things I need/want to do with this.