Masking bug by filters


#1

Hi all.

We have MASKED container with sprites on GlowFilter.

At the added glowFrame.visible = false, but onClick visible = true;

And now : after click chaos starts, one part of other application destroyed, glowFrame does not appers and so on. If we kill GlowFilter on masked objects - its works fine.

The sample of code

override public function onAdded(e:Event):Void 
{

addChild(this._glow);
		
		this._glow.graphics.beginFill(0x055dc7, 1);
		this._glow.graphics.drawRect(0, 0, _w, 1);
		this._glow.graphics.drawRect(0, 1, 1, _h - 1);
		this._glow.graphics.drawRect(1, _h - 1, _w - 1, 1);
		this._glow.graphics.drawRect(_w - 1, 1, 1, _h - 2);
		this._glow.graphics.endFill();
		
		this._glow.filters = [new GlowFilter(0x0000ff, 1.06, 10, 10, 1, 3, false, false)];
		
		this._glow.visible = false;

          addEventListener(MouseEvent.CLICK, onClick);
} 

public function onClick(e:MouseEvent):Void 
	{
		this._glow.visible = !this._glow.visible;
}

Every of this objects under mask


#2

Thanks for the sample! We’ll take a look


#3

Thanks! I believe this is now working properly on dev, there was an issue when using OpenGL cacheAsBitmap plus masking in a parent object, that appears to now be resolved in several tests :slight_smile: