Jump to content
GreenSock

donJao

ERROR: Property removeTint not found [SOLVED]

Recommended Posts

Hello everyone.

 

I'm getting a problem that I cannot get rid of on my own.

 

ERROR: Property removeTint not found

 

I've activated the plugin in the constructor:

TweenPlugin.activate([TintPlugin]);

 

I've successfully applied tint to the TextField:

TweenLite.to(m_letter, 0.3, {tint: Config.GAME_ANSWER_FONT_COLOR_OVER});

 

But I cannot remove tint:

TweenLite.to(m_letter, 0.5, {removeTint: true});

 

That code does NOT do the job for me. Throws an error. Using FDT with Flex 3.4 SDK, building FP9 app.

 

Thanks in advance.

Link to comment
Share on other sites

I've tried without activating the plugin via TweenPlugin and it works.

 

What is the type of m_letter ? a TextField ? a Sprite ?

if it's a textField, you could try with a sprite and the textField as a child of it.

Link to comment
Share on other sites

Hey! Thanks for the quick reply!

 

Yes, the object is a TextField instance. And I found a solution myself, which is:

TweenPlugin.activate([TintPlugin,RemoveTintPlugin]);

 

Now everything works flawlessly.

 

P.S. sorry for dumb post, but it's 3rd sleepless night, 2:25 AM and i have to deliver the project by 12:00 AM :) So, I'm kinda broken.

 

Anyway thanks for help! Really appreciated.

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