Clear AS3 BitmapData

geek

You’d think that there would be a way to clear BitmapData maybe something like BitmapData.clear(), but when is anything that simple. So far the best I’ve come up with is…

bmd.fillRect(bmd.rect, 0);

Tags: , , , ,

2 Responses to “Clear AS3 BitmapData”

  1. chris Says:

    why not just… bmd.fillRect(bmd.rect, 0)? what’s the second line for?

  2. jorge Says:

    it”s a copy paste error. Once the bmd is filled, it is completely transparent.

Leave a Reply