Share Posted November 25, 2010 Hi, The following code is pretty nice and working fine. I want to animate another movie clip 5 seconds after the first movie clip finished animating. The first movie will take 10 seconds to finish. So where can I mention the delay time of "10" seconds in the same code: TweenMax.fromTo(TA_mc, 6, {rotation:0, x:-300, y:-125, alpha:0}, {rotation:"-360", x:600, y:400, alpha:1, ease:Strong.easeOut}); Thanks. Link to comment Share on other sites More sharing options...
Share Posted November 26, 2010 You can add a delay in the 2nd {} object. The 'to' vars. TweenMax.fromTo(TA_mc, 6, {rotation:0, x:-300, y:-125, alpha:0}, {rotation:"-360", x:600, y:400, alpha:1, delay:10, ease:Strong.easeOut}); Link to comment Share on other sites More sharing options...
Author Share Posted November 29, 2010 Hi, Thanks for your reply. But I am getting the following error: TypeError: Error #1010: A term is undefined and has no properties. The following is the code: TweenMax.fromTo(Logo_mc, 15, {rotation:0, x:-300, y:-125, alpha:1, scaleX:1, scaleY:1}, {rotation:"-360", x:850, y:360, alpha:0.7, scaleX:0.4, scaleY:0.4, delay:10, ease:Strong.easeOut}); Link to comment Share on other sites More sharing options...
Share Posted November 29, 2010 Are you sure that error is related to the tween? Is Logo_mc null or something? Did you forget to import the classes? I don't see any obvious problems in your tweening code, so I suspect the error is caused by something else in your other code. 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