Jump to content
Search Community

Tween overwriting tineline animation

Torben test
Moderator Tag

Recommended Posts

I'm not sure I can explain this but I'll try.

 

I have a movieclip that has a timeline animation (that I'd rather not convert to a tween) that changes scale, rotation and so on. The same movieclip will at some time be tweened with TweenNano too (again scale, rotation...).

I stop() the timeline animation before I tween it.

 

The next time I try to play() the timeline animation nothing happens - the playhead on the timeline is progressing, I can tell by tracing the currentFrame on ENTER_FRAME but the scaling, rotation, x & y doesn't change as it goes along the timeline animation.

 

Seems like the TweenNano has overwritten the timeline animation or something.

Link to comment
Share on other sites

This isn't a problem with TweenNano - it's just that as soon as you alter ANY property of ANY object via ActionScript, it essentially "unhooks" it from the timeline and you can never put it back. You can see it happen by simply setting the x property or alpha of your mc, like:

 

mc.x = 100;

 

As soon as that ActionScript runs, your timeline animations won't work anymore. It's just how Flash works. So you need to chose - either animate your object with ActionScript or frame-based MovieClip timeline tweens, not both. Of course I'd highly recommend using TimelineLite and TimelineMax: http://www.greensock.com/timeline-basics/

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