Axonn Posted April 27, 2010 Share Posted April 27, 2010 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 More sharing options...
GreenSock Posted April 27, 2010 Share Posted April 27, 2010 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 More sharing options...
Axonn Posted April 27, 2010 Author Share Posted April 27, 2010 I got a drop shadow filter on it. That might be the reason? Link to comment Share on other sites More sharing options...
GreenSock Posted April 27, 2010 Share Posted April 27, 2010 Nope, I don't think an object's filters affect its width/height. Is it rotated? Link to comment Share on other sites More sharing options...
Axonn Posted April 27, 2010 Author Share Posted April 27, 2010 Nevermind ::- D. It's my Panel's fault. It's width is 292 actually. My bad ::- D. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now