Jump to content
Search Community

Tween object tint + dropshadow with different colors

eerdepeer test
Moderator Tag

Recommended Posts

Hi, I'm trying to tint a button object on hover, but when I tint the object and give the dropShadowFilter another tint, the dropshadow's tint will be overruled by the tint of the object.

 

For example:

TweenMax.to(mc, 1, {tint:0xFFFFFF, delay:1, dropShadowFilter:{color:0x000000, alpha:1, blurX:2, blurY:2, strength:1, angle:45, distance:4}});

 

The dropshadow will be white (0xFFFFFF) after two seconds. What I want is the object to become white and the dropshadow to become black. How can I do this?

Link to comment
Share on other sites

Yep, that's just the way Flash works (tints color EVERY pixel including filter ones) - it has nothing to do with TweenLite/Max specifically. You can easily get the effect you're after, though, by nesting your MovieClip/Sprite inside another one so that you can tint the internal (nested) one and apply the DropShadowFilter to the parent one.

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