Jump to content


Tween changing size

Moderator Tag

Recommended Posts



Im new to both AS2 and Tweenlite, so i hope someone here can help me out a bit with this newbie question.


I want to be able to transform a movieclip in size from 90% to a 100% with a smooth motion. What i now have found is:




To change its size to 100% but this action is preformed instantly. What i want is a smooth motion when the movieclip gets larger.


Hope someone can help me with this!




Link to comment
Share on other sites

I figured it out with this


TweenLite.to(ruta2_mc, 1, {_x:300, _y:450,_xscale:100, _yscale:100 });


Sorry for a stupid question.


But now for another one, cus i couldnt find any answer for this one either.


After this is done i want to move the movieclip outside of the screen and then delete it. How do i do that?





Link to comment
Share on other sites

You can either use the "delay" special property to sequence the tweens, or use an onComplete to call a function that does that. Just tween it off the stage and then use removeMovieClip().


TweenLite.to(ruta2_mc, 1, {_x:300, _y:450,_xscale:100, _yscale:100 });
TweenLite.to(ruta2_mc, 1, {_x:800, delay:1, overwrite:false, onComplete:myFunction});
function myFunction():Void {


If ruta2_mc is at a level lower than 0, you'll probably have to swapDepths() to a higher level before you removeMovieClip().

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.