Jump to content
Search Community

TweenMax skips frames on timeline[SOLVED]

shibbydoo test
Moderator Tag

Recommended Posts

Hi,

 

I have this timeline animation in Flash CS4, and I'm using TweenMax to control it like this

 

TweenMax.to(_beam, .5, {frame:12, startAt:{frame:1}, repeat:2, ease:Linear.easeNone});

 

However it just doesn't look right, so I traced the currentFrame in ENTER_FRAME event and the trace looks like this

2 3 4 5 6 7 9 10 11 1 2 2 2 3 4 5

there are 12 frames in my movieclip and the frame rate is 24

see it didn't even play the 1 frame and the last frame (12), I did add

TweenMax.killTweensOf(_beam);

and it's still not working right... help! thanks.

 

christine

Link to comment
Share on other sites

Remember that by default, tweens begin rendering for the first time on the very next ENTER_FRAME event (the next frame) unless you set immediateRender:true. And this is probably a great case for using the new useFrames:true feature so that the tween's timing is based on frames, not seconds, like:

 

TweenMax.to(_beam, 11, {frame:12, startAt:{frame:1}, repeat:2, ease:Linear.easeNone, useFrames:true});

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