flash - [OpenFL][HTML5 Target] BlendMode not working -


i'm adding sprite bitmap inside stage, change blendmode screen. nothing happens on html5 targets while on flash works fine... openfl wiki says "available on platforms" (link)

am doing wrong?

here code im using:

var sp:sprite = new sprite(); sp.graphics.beginfill(0xff0000, 1); sp.graphics.drawcircle(200, 200, 100); sp.graphics.endfill(); addchild(sp);  var bmd:bitmapdata = assets.getbitmapdata("img/1.jpg"); var b:bitmap = new bitmap(bmd); b.blendmode = blendmode.screen;  addchild(b); 

imporets are:

import openfl.assets; import openfl.display.bitmapdata; import openfl.display.bitmap; import openfl.display.blendmode; import openfl.display.sprite; 

flash target:

flash export print screen

html5 target:

html5 export print screen

as far know, html5 canvas doesn't have blendmode support, html5 webgl does. try compiling lime test html5 -dwebgl

image http://community.openfl.org/uploads/default/original/1x/07204c836f7a3b9b7a296b829a9dc72633bfd974.png


Comments