[Flash8]copyPixels problem!

Is there anyway efficient way to copy the pixels from a BitmapData object to another BitmapData object excluding pixels of a certain color?