How to remove particular pixels from png or moviclip through script?

For example I have a movieclip with two different pixels green and red. I need to remove only red pixels from that movieclip. Is that possible ?