Build to html5 target with dom flag, get TypeError, I am using openfl 3.06
source code:
var mask_mc = new MyRectMask();
mask_mc.size = 100;
mask_mc.x = 100;
mask_mc.y = 100;
var imgContainer:Sprite = new Sprite();
var myImageC:Bitmap = new Bitmap (Assets.getBitmapData ("img/5.jpg"));
imgContainer.addChild(mask_mc);
imgContainer.addChild(myImageC);
imgContainer.mask = mask_mc;
this.addChild(imgContainer);
html5 target with dom flag, test on chrome,
Uncaught TypeError: Cannot read property 'pushMask' of undefinedDisplayObjectContainer.hx:914 openfl.display.DisplayObjectContainer.$extend.__renderDOMDisplayObjectContainer.hx:922 openfl.display.DisplayObjectContainer.$extend.__renderDOMDisplayObjectContainer.hx:922 openfl.display.DisplayObjectContainer.$extend.__renderDOMDisplayObjectContainer.hx:922 openfl.display.DisplayObjectContainer.$extend.__renderDOMDOMRenderer.hx:139 openfl._internal.renderer.dom.DOMRenderer.$extend.render