Jump to content
GreenSock

mrEmpty

TweenMax inside TimeLineMax tween is instant.

Recommended Posts

Hello.

 

For some reason this:

 

tl.append(new TweenMax (this, 1, {red:127, green:50, blue:25, onUpdate:goDMX, ease:Linear.easeNone}));

 

doesn't take a second to tween the variables, instead it's instant. The goDMX function only traces once also, instead of the many times I'd expect. The red green and blue vars are generic public number variables.

 

Can somebody please point out the obvious mistake I can't see!

 

Thanks.

Link to comment
Share on other sites

Have you set useFrames = true ?

That would make the duration be 1 frame instead of 1 second long.

 

 

Link to comment
Share on other sites

Yeah, it sure sounds like the timeline you're appending the tween to has useFrames set to true. If not, would you mind posting a very simple FLA (zip it first) that demonstrates the issue?

Link to comment
Share on other sites

Hello.

 

I'll post the rest of the code tomorrow when I'm back at work, but it's a standard timeline. I think it's a ropey fla because it doesn't happen on other projects, using identical code. I guess the rumour of fla files going bad sometimes is 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.
×