Jump to content
Search Community

Input TextField text color [SOLVED]

Doccie test
Moderator Tag

Recommended Posts

Hey all,

 

I wanted to tween the text color of an input textfield, using the tint or ColorTransform plugins, but it seems that as soon as you set the border and background color of a textfield, you can't tween the text color anymore, but instead, it tweens the background color of the text field.

 

Is there any way around this?

Link to comment
Share on other sites

When you tween the tint of a DisplayObject (a TextField is a DisplayObject), it affects EVERY PIXEL of the DisplayObject. So yes, that includes the background if you have one. That has nothing to do with TweenLite/Max specifically, though - it's just how Flash works.

 

If you want to only affect the text, you'd need to use the hexColors plugin to tween the hex value of the text and then use an onUpdate to apply it to the text each time it updates.

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