PAINTING/ERASING (mx 2004)

hi guys,

i have a question about the drawing api in flash mx 2004
i would like to draw e.g. a rectangle and then i want to erase a specific part of the rectangle.
one good example for what i am looking for is the BLAST A FOOTER game from McGiver.