Jump to content
GreenSock

danno

TransformManager[AS3] - flipping inverse [SOLVED]

Moderator Tag

Recommended Posts

hey guys,

i've gotten TransformManager for AS3 and i've initialized it ( using TransformItem ) on a dynamically created clip on the stage. i've got setScaleContstraints on the item as well.

after doing so and scaling the image, if i drag the handles further, it actually will mirror the image, almost into the negative-x and negative-y space.

 

any help would be appreciated in stopping this from happening.

 

thanks!

Link to comment
Share on other sites

Did you apply the scale constraints so that the minimum scaleX/scaleY are 0? That would prevent them from going negative.

Link to comment
Share on other sites

i actually have them set at .5 , my code:

 

var clip1Item:TransformItem = manager.addItem(getChildByName("Item0"));
clip1Item.setScaleConstraints(0.5, 1, 0.5, 1);

 

and it's doing it currently.

Link to comment
Share on other sites

I just tested it and it seemed to work perfectly for me. Could you send me a sample FLA or Flex project that demonstrates the issue? Just private message me.

Link to comment
Share on other sites

I just tested it and it seemed to work perfectly for me. Could you send me a sample FLA or Flex project that demonstrates the issue? Just private message me.

pm sent!

Link to comment
Share on other sites

I believe I found the problem. It only showed up if you dragged far enough in the opposite direction. Please download the latest version from the link I sent you and let me know if that works well for you. Sorry for the inconvenience.

Link to comment
Share on other sites

thanks for the reply. didn't actually see a link in your reply... maybe i'm missing it in the PM.

 

thanks!

Link to comment
Share on other sites

wanted to follow up and say that the updated code fixed the problem.

 

thanks again!

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.
×