Jump to content
Search Community

Multiple Timelines with the same MCs

rob_v_5712 test
Moderator Tag

Recommended Posts

I'm sure this has been address before, but for some reason I just cant find it.

 

Here is the situation - I have 3 MCs on the stage - mc1, mc2, mc3

All are initially sitting on the stage at Y=100 & X= 100,300, & 500

 

I create 2 timelines.

the first I want to run immediately. (frame 100 for this example)

The 2nd I want to run on a button click.

myTimeline_1 = new TimelineLite( {useFrames:true} );

myTimeline_1
.fromTo(mc1,30,{_y:100, _alpha:0},{_y:500, _alpha:100},100)
.fromTo(mc2,30,{_y:100, _alpha:0},{_y:500, _alpha:100},200)
.fromTo(mc3,30,{_y:100, _alpha:0},{_y:500, _alpha:100},300);

myTimeline_2 = new TimelineLite( {paused:true, useFrames:true} );

myTimeline_2
.fromTo(mc1,30,{_y:500, _alpha:100},{_y:200, _alpha:50},100)
.fromTo(mc2,30,{_y:500, _alpha:100},{_y:200, _alpha:50},300)
.fromTo(mc3,30,{_y:500, _alpha:100},{_y:200, _alpha:50},500);

myBtn.onRelease = function()
{
	myTimeline_2.play();
}

When I run this, and remove myTimeline_2, the MC start at Y=100 with alpha 0 and tween to Y=500 with alpha 100

When I run this with myTimeline_2 in place the MCs all start at Y=500 with and alpha 100 then at frame 100 myTimeline_1 starts and they go as expected.

 

What do I need to do to have myTimeline_2 not evaluated until It actually runs?  I have a feeling it has to do w/ using either the OverwriteManager  or using Invalidate().  I have been messing w/ both of them and cannot seem to figure it out.

 

Any help would be appreciated.

(BTW - this is used AS2 and v12)

Thanks

 

 

 

Link to comment
Share on other sites

  • 3 weeks later...

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...