Unfortunately, you cannot record audio in Flash only in the browser. All Flash audio interfaces are designed (unexpectedly surprised) to talk to the Flash media server (or Red5): there is no interface for storing recorded audio data locally and transferring recorded audio data to Javascript.
After setting up Red5 / FMS, you can control the recording process from Javascript: you can start / stop / play the audio stream to / from the server. However, for security reasons, you should have a flash movie that is at least 216 x 138 (see http://blog.natebeck.net/2009/01/tip-of-the-day-tricks-of-the-mic- settings-panel / for recording), otherwise the settings manager will not be displayed: this prevents hiding the flash widget on the page and eavesdropping.
So no, the invisible flash is controlled from javascript.
source share