Jump to content
Search Community

Scaling Mystery

rimacy test
Moderator Tag

Recommended Posts

Hi Im doing a simple tween of the scaleY of a movieclip(as3) using tweenlite. The movieclip is a grandchild of the class in which the tween originates. Ishould aslo note that tweenlite is doing other similar scales in this class with no problems.

 

The scale is reflecting a change in weight.

 

The mystery is this:

 

TweenLite.to(asBaseScreen.weightChevron, .5, { scaleY:(totalShipWeight / _model.weightRating) } );

completely removes the movieclip.

 

and this:

 

asBaseScreen.weightChevron.scaleY = totalShipWeight / _model.weightRating;

works fine except of course with no tweening,

 

does anyone have any ideas?

Link to comment
Share on other sites

sounds very strange.

have you tried tweening to a hard-coded value like .5?

have you tried tweening another property like alpha?

 

just curious to know if every type of tween blows up.

 

from what you have illustrated with the working code, it appears all the objects and properties are valid and accessible.

Link to comment
Share on other sites

Thanks for the push. I started working with the set values and it worked. So I looked at my dynamic values and BANG i was scaling to infinity if no engine was equipped so:

 

if(myDynamic value != Infinity)

{

tween the H outta that thing()

}

 

Thanks again!!

  • Like 1
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...