Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
jjletho

TweenMax motion problem OLD version vs NEW Release

Recommended Posts

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

solved with:

 

overwrite:1

Link to comment
Share on other sites

thanks for posting your solution.

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.
×