Flash as3 record sound

hey everybody.
I’m trying to make flash (as3) on a click record a sound from a microphone save that sound so i could visualize it. and i need it to do it more then once
so i can create some sort of a drum machine.
is it possible in flash? i thought maybe the flash media server is the tool for the job.
thanks