Jump to content
Search Community

TransformManager and constrainScale qwerk?

sugarfree test
Moderator Tag

Recommended Posts

Hi Jack,

Just wondering if there is a odd behaviour with constrainScale.


private var _manager:TransformManager = new TransformManager({ lockRotation:false, bounds:new Rectangle(5, 5, 645, 361), forceSelectionToFront:false, allowDelete:true, autoDeselect:true, handleSize:4, allowMultiSelect:false, ignoreEvents:true} );
var item:TransformItem = _manager.addItem(icon);
item.constrainScale = true;
var item:TransformItem = _manager.addItem(test);
item.constrainScale = false;


// both icon and test behave as expected.


But change TransformManager to this:

private var _manager:TransformManager = new TransformManager({ constrainScale:true ......});


// and test doesn't behave as expected. i.e its constrainScale behaves as though its true (even though set to false).


Should this be the expect results?


PS: Interestingly, when its false, icon and test behave as expected :-)


private var _manager:TransformManager = new TransformManager({ constrainScale:false ......});

False cant override true, but true can override false. (odd)




Link to comment
Share on other sites

  • 2 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...