A journal that focuses on Flash Platform development, and a little bit about what I am up to on any given day.

Thursday, November 17, 2005

Microphone in AS3?

A few of us in the office today were trying to determine how to play audio from your microphone locally in AS3.

The Migration Guide:


Says that attachAudio has been removed and replaced with addChild

Well if you try that it will obviously fail because it is not a display object.

Sound objects in the new AVM are not bound to timelines anymore as far as I can see, they are held in SoundChannels instead. That makes total sense, a Sound.play() returns a sound channel that holds it.

But, does anyone know how to get reference to the Sound object that is the output of the Microphone? There seems to be no documentation anywhere in relation to this.