Jump to content
Search Community

Animate CC/GSAP Tweening root movieclip & nested movieclip concurrently

Matt Severin test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

I'm wanting to tween the x position of a movieclip on the root timeline and while that root clip is tweening I'm wanting to tween the x position of a movieclip nested inside that main movieclip. However I can't get the nested clip to tween at the same time.

If I comment out the root mc tween, the nested tween works. There are no timeline tweens and all the clips live on 1 frame.

Is there anything obvious that I'm missing here that would break the nested tween?

Here's a snippet of code that lives in the root, it's not wrapped in a function:

t.to(this.scene_front, 4.5, {x:"-=220"});
t.to(this.scene_front.fox_walking, 3.5, {x:"+=200"});

Link to comment
Share on other sites

TL Lite works the same in Animate CC, but you can't use CSS selectors like I did. You might have problems if you're trying to tween something on the Animate CC timeline at the same time that GSAP code is moving it, so pick one or the other.

  • Like 2
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...