Share Posted April 5, 2011 hi jack, I had a little problem with tweenmax using the same code to tween a movie clip I get tweo different results when using old and new version of tweenmax you can check the results here: http://www.marcosalvatori.com/greensock/ this is the simple code: ////greensock import com.greensock.layout.*; import com.greensock.*; import com.greensock.easing.*; import com.greensock.plugins.*; import com.greensock.loading.*; import com.greensock.events.LoaderEvent; import com.greensock.loading.display.*; /////////////////////////////////////// moves.x=0; moves.addEventListener(MouseEvent.MOUSE_MOVE,goM); function goM(e:MouseEvent){ if(moves.width>stage.stageWidth){ TweenMax.to(moves,.5,{x:Math.round(-1*((moves.width-stage.stageWidth)*(stage.mouseX/stage.stageWidth)))}); }else{ TweenMax.to(moves,1,{x:0,ease:Strong.easeOut}); } } The problem is: I prefer the old one Do you know a trick to get the same result with new release of tweenmax? Link to comment Share on other sites More sharing options...
Author Share Posted April 5, 2011 solved with: overwrite:1 Link to comment Share on other sites More sharing options...
Share Posted April 6, 2011 thanks for posting your solution. 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