Jump to content
Search Community

Novice question #2

ngrinchenko test
Moderator Tag

Recommended Posts

i can not find any documentation or tutorials on how to tween the same _mc multiple times at a specified delays.

is there a way to make one _mc to do different things.

i.e. i would like it to zoom on the screen, then to change color, then to stay dormant for a few seconds, then start blinking, then move in position and then remain blinking there.

i am working in AS2 in Flash MX 2004

 

Could anyone provide a good lead to a tutorial on the subject or if it is a common question perhaps a sample code for AS2?

 

Thanks

Link to comment
Share on other sites

Hi ngrinchenko and welcome to the Greensock forums.

 

Taking on board what Carl responded with in your other thread the "Delay" property can be used to delay tween to the same MC:

 

TweenLite.to(dot_mc, 1, {_y:55});

TweenLite.to(dot_mc, 1, {_x:55,delay:1});

TweenLite.to(dot_mc, 1, {_alpha:55,delay:2});

 

First dot_mc will move along the y axis to 55, a second later on the x axis to 55 and after another second it will alpha to 55.

 

You may want to consider using TimelineLite which I believe also works with AS2, though again not sure if it works 100% with Flash MX 2004.

 

I hope that helps, post back if you need further advice.

 

X10

Link to comment
Share on other sites

If you are using TweenLite multiple times on the same mc, then you need to init the OverwriteManager

http://www.greensock.com/overwritemanager/

 

import com.greensock.*;
OverwriteManager.init(2);
TweenLite.to(mc, 1, {_x:100});
TweenLite.to(mc, 1, {_y:300, delay:1});

 

For more control over robust sequences of tweens read up on TimelineLite/Max

 

http://www.greensock.com/timelinelite/ (be sure to watch the video mentioned at the top of the page)

 

also watch this:

http://www.snorkl.tv/2010/08/a-quick-lo ... ax-tweens/ (AS3 but the same concepts still apply)

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.
×
×
  • Create New...