best-agent-85158
08/21/2022, 9:05 PMmask property that allows only showing a portion of an object, specified by a filled shape:
hx
var m = new Shape();
m.graphics.beginFill(0xFFFFFF);
m.graphics.drawCircle(100, 100, 100);
m.graphics.endFill();
displayObject.mask = m;
// a circle in 100, 100 with a radius of 100 will be the only visible portion of displayObject