The createGlow() method creates an outer-glow. What have we to do for creating inner-glow with outer-glow? And how can we use multiple filters for the same object (say blurFilter & colorMatrixFilter simultaneously)?
How to use multiple filters on the same object/sprite ?(5 posts) (4 voices)
Perhaps you could nest your objects as layers within a sprite and apply the filters to each layer? So if you wanted inner glow with an outer glow, add the inner-glow filter to the child object and the outer glow filter to its parent.
No, that won't work -- a stage3d limitation prevents nesting filters; and the filter API currently doesn't support combining several filters.
So, sorry -- at the moment, this is not possible.
Any update on this ? Hope there is at least a workaround to achieve this.Posted 6 months ago #
Yes, this is now possible! You can easily combine several filters on one display object via the new FilterChain.
Here's the filter chain in action:
var hueFilter:ColorMatrixFilter = new ColorMatrixFilter(); hueFilter.adjustHue(1); var dropShadowFilter:DropShadowFilter = new DropShadowFilter(); var image:Image = new Image(assets.getTexture("starling")); image.filter = new FilterChain(hueFilter, dropShadowFilter); addChild(image);Posted 6 months ago #
You must log in to post.