Snippets

Thu Jun 21

Detecting microphone activity levels in flash requires a few magic incantations to get it to work:

mic = Microphone.get();

mic.onActivity = function(){}

_root.attachAudio(mic);

 // now you can read the activityLevel

trace(mic.activityLevel);