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