Jump to content
Search Community

TweenMax colorMatrixFilter removing blendModes of children

SomeTallgy test
Moderator Tag

Recommended Posts

Hi folks, been having a rather perplexing problem while using the colorMatrixFilter property in TweenMax on an object. It seems to remove blendModes like BlendMode.ADD from any children or nested children in the display object. Thus any images with black backgrounds that were originally hidden by setting to ADD or SCREEN become visible during the tween.

 

As I understand it, colorMatrixFilter or most filters cache the object as a bitmap if I am not mistaken and this is a probable cause of this is happening.

 

Is there anyway to maintain blendmodes of children when applying this filter in a tween?

 

Thanks!

Link to comment
Share on other sites

Not that I know of, no. That's a limitation of Flash itself and isn't related to TweenMax specifically. I suppose you could do some fancy footwork with BitampData and capture the parent object as a BitmapData (with draw()) and then do your colorMatrixFilter on that but that isn't exactly easy. I wish I had a simple solution for you.

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