Jump to content
Search Community

Tweening Frames, nested children not playing

seren test
Moderator Tag

Recommended Posts

Hi, I have a movieclip which I am trying to tween to a target frame in the timeline. The movieclip has child movieclip's nested on the timeline. When I tween my main timeline will animate, but my children will not. Is this the way TweenMax works, or am I approaching the problem in the wrong way? Help really appreciated :)

 

Example code :

timeline.append(new TweenMax(animClip, duration, {delay : delay, ease : Linear.easeNone, frame : totalFrames, repeat : loopsRequired, onComplete : handleFinished }));

Link to comment
Share on other sites

Right - that's just how Flash works. It has nothing to do with TweenMax. MovieClips don't synchronize their timelines. So if you have child_mc inside parent_mc and they both have 20 frames, they'll appear to play together but then if you parent_mc.gotoAndPlay(1) when it hits frame 10, child_mc will keep going onto its frame 11 whereas parent_mc will skip back to frame 1.

 

If you want them to by synchronized, you could use TweenMax to do all the frame tweening (for all nested MovieClips too).

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