Jump to content


What is the equalant code, please?

Moderator Tag

Recommended Posts



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);



Link to comment
Share on other sites

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

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.