Jump to content
Search Community

TimelineLite and mc append

ziociro test
Moderator Tag

Recommended Posts

sorry, i'm trying and searching in forum but... nothing! i've a mc1, mc2, mcX that appear with

 

timeline.append( new TweenLite(mc1, enter, {alpha:1}) );
timeline.append( new TweenLite(mc2, enter, {alpha:1}) );
timeline.append( new TweenLite(mcX, enter, {alpha:1}) );

@ the end of this need to start a little animation (stopped in timeline with)

mc_animation.stop;

and here there isn't problem...

 

searching help, in http://www.greensock.com/as/docs/tween/_timelinelite.html i've found: "...myTimeline.gotoAndPlay("myLabel") will skip to wherever "myLabel" is"

so i've try to:

1) add label "go" in the "mc_animation" timeline

2) in parent timeline add

timeline.gotoAndPlay("go")

publishing don't give error but... simply... mc_animation. DON'T START!!!

where i wrong? :oops::oops::oops:

 

...tnx... :)

Link to comment
Share on other sites

you say the problem is that something called mc_animation won't start but you are putting a label in mc_animation and then telling timeline.gotoAndPlay("go"). it seems the label "go" isn't in timeline

 

it seems you want mc_animation to gotoAndPlay("go");

 

 

assuming that you have a TimelineLite called timeline that needs to tell a MovieClip called mc_animation to play its frame labeled "go" when timeline is finished the following approach will work:

 

import com.greensock.*;

var timeline:TimelineLite = new TimelineLite({onComplete:mc_animation.gotoAndPlay, onCompleteParams:["go"]});

timeline.append(TweenLite.to(box, 1, {x:200}));
timeline.append(TweenLite.to(box, 1, {y:300}));

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