Jump to content


Restricting image flipping

Recommended Posts

I'm trying to prevent a transform item from flipping using setScaleConstraints(). However, it's not working. Here's my code.


var TformManager:TransformManager = new TransformManager({scaleFromCenter:true, forceSelectionToFront: false, lineColor: 0xb9d4dd, handleFillColor: 0xd9f5ff});

var userPicItem:TransformItem;

userPicItem = TformManager.addItem(userPic_cont_mc);

userPicItem.setScaleConstraints(.1, 2, .1, 2);


Is this the correct approach for what I'm trying to do?



Link to comment
Share on other sites

Yep, that looks like the correct code. It's not working? I just tested it and it worked great for me. You're using the AS3 version, right? The AS2 version doesn't have that feature.

Link to comment
Share on other sites

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.