rimacy Posted May 11, 2012 Share Posted May 11, 2012 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 More sharing options...
Carl Posted May 12, 2012 Share Posted May 12, 2012 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 More sharing options...
rimacy Posted May 12, 2012 Author Share Posted May 12, 2012 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!! 1 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