BitmapData.setPixels() doesn't work in HTML5?

I tried in OpenFL 2.1.7 & Lime 2.0.1, it seems setPixels() and setVector() don’t work in HTML5. Will this be fixed?

It should work, please let me know if there’s a simple test I could use to reproduce the problem you’re seeing

My code:


import flash.display.Sprite;
import flash.display.BitmapData;
import flash.display.Bitmap;
import flash.geom.Rectangle;
import flash.utils.ByteArray;
import openfl.Lib;

class Main extends Sprite 

    public function new() 

        var myBD = new BitmapData(256, 256, false, 0xff0000);
        addChild(new Bitmap(myBD));
        var myBA = new ByteArray();
        for (i in 0...(128 * 128))
        myBA.position = 0;
        myBD.setPixels(new Rectangle(0, 0, 128, 128), myBA);

The flash target has no problem:

But for HTML5, I got this:

Thanks, just posted a fix: