Flash Drawing - Undo

Hey,

Im creating a multiplayer drawing-game with Flash CS3 (AS3).
Basicly im creating a Shape-object and let the users draw freehand on this
with lineTo-commands. (Which coordinates is broadcasted.)

Now I need a way to UNDO the last line…

I guess I could create a MC for every line, but doesn feel right.

Ideas?