Jump to content
Search Community

Not seeing colour transform Tween?

redconservatory test
Moderator Tag

Recommended Posts

I have the following code to tween some black text to white:

 

TweenMax.to(item.buttonLabel, .2, {x: 300});
TweenMax.to(item.buttonLabel, .2, {delay: .1, colorTransform:{tint:0xFFFFFF, tintAmount:1}});

 

The first part of the code:

 

TweenMax.to(item.buttonLabel, .2, {x: 300});

 

Works (moves the text over)...however, the next line:

TweenMax.to(item.buttonLabel, .2, {delay: .1, colorTransform:{tint:0xFFFFFF, tintAmount:1}});

 

Doesn't change the text to white.

 

Here are my imports:

 

import com.greensock.TweenMax;

import com.greensock.easing.*;

import com.greensock.plugins.*;

Link to comment
Share on other sites

Nope, tweening a 3D property doesn't break the colorTransform stuff - I just tested it and it worked fine. Please post a sample FLA that demonstrates the problem (the simpler the better). Don't forget to zip your FLA before posting here too. I'm sure we can get it figured out.

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