Jump to content
Search Community

Tweening Accuracy

Axonn test
Moderator Tag

Recommended Posts

Maybe this is a noob question but here it goes anyway: I got a Panel which I'm tweening to a greater size via modification of the ScaleX and ScaleY properties. I set it to tween to scale 1.3. The Panel's width is 290. Scale 1.3 should take it to 377. However, when I trace the panel's width, at the end of the tween, I get 379.6. I am using BounceEaseOut.

Link to comment
Share on other sites

Is your object's raw (unrotated, unscaled) width 290? Are you absolutely positive? TweenLite/Max will always end at EXACTLY the end values you defined in the tween. It doesn't fudge them at all. Keep in mind that the scaleX is relative to the object's native size, NOT the current width/height. And if you rotate an object, it affects the width/height but NOT the scaleX/scaleY. The width/height reflect the rectangular bounding box of the object.

 

If you're still having trouble, please post an FLA that demonstrates the issue.

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.
×
×
  • Create New...