Clear AS3 BitmapData

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: as3, flash, flex, help, tutorial
This entry was posted on Tuesday, September 29th, 2009 at 11:23 pm and is filed under as3, help, tutorial. You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
April 15th, 2010 at 3:02 pm
why not just… bmd.fillRect(bmd.rect, 0)? what’s the second line for?
November 1st, 2011 at 1:12 am
it”s a copy paste error. Once the bmd is filled, it is completely transparent.