Recording 'internal sound' to file

Hi,

I’m building a flash music game. Like many many others it uses looping clips to compose a track. Is it possible to record to external mp3 file when lets say the player press a record button.

Thanks

Frosty.