Theremin?

Hi, I’m a MA student and I’m trying to make a simple theremin in Flash. Can it be done and has anyone made one before?
Thanks, Stephen