Hi
I have a bitmapdata object that is filled with n rectangles of a width of 1 pixel and of varying heights.
I want to run through a loop and remove the old rectangle and replace it with a different one.
Should I do something like reset the each bitmap column of pixels to a background color and then add the rect i want?
for(i:int=0;i<bitmapdata.width;++i)
{
(for var j:int=0;j<bitmapdata.height;j++)
{
bitmapdata.setPixel(i,j,0x000000)
}
bitmapdata.fillrect(my new rect,0xffffff)
}