Share Posted November 22, 2010 Hi, I am using Flash CS$ AS3. The following code is working fine. But I want to use the "TweenMax" code to get the same effect. What is the code in greensock to achieve it. var IntroductionTween:Tween = new Tween(Content_mc,"x",Regular.easeOut,Content_mc.x,0,1,true); Thanks. Link to comment Share on other sites More sharing options...
Share Posted November 22, 2010 Have you read the "getting started" article? If not, check it out: http://www.greensock.com/get-started-tweening/ Your code would look like this: TweenMax.to(Content_mc, 1, {x:0}); Of course if you prefer the object-oriented syntax, you could do the same thing like this: var IntroductionTween:TweenMax = new TweenMax(Content_mc, 1, {x:0}); There are more learning resources at http://www.greensock.com/learning/ 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