GreenSock


TransformManager Updated - Scale/Rotate/Move any MovieClip

Posted in Transforming by jack on the June 18th, 2007

This class works with the TransformItem class to give the user the ability to scale, rotate, and/or move any MovieClip on the stage using an intuitive interface (similar to most modern drawing applications). When the user clicks on the TransformItem’s MovieClip, a selection box will be drawn around it along with four handles for scaling. When the user places their mouse just outside of any of the scaling handles, the cursor will change to indicate that they’re in rotation mode. Hold down shift to constrain scaling proportions or to limit rotation to 45 degree increments. This TransformManager class will handle multiple TransformItem instances, switching the selection boxes (so that only one is selected at a time) as well as updating the properties with a single call. See the TransformItem class for more details about features.

More...