The ability to interact with a microphone is something that was introduced in recent versions of Flash. I hope you will get the idea of how to use a microphone in Flash from this tutorial.
The following animation is a simple example of how we were able to create some interactivity by using the microphone to control the scale of the clip:
[ Click Allow and speak into your microphone ]
Let's re-create a simpler version of the above animation:

[ draw a circle in your drawing area ]

[ give your newly-made movie clip the instance name circle ]
m = Microphone.get();
attachAudio(m);
m.setUseEchoSuppression(false);
onEnterFrame = function () {
circle._xscale = circle._yscale = m.activityLevel + 50;
};
Not to leave you in the dark, I will explain what the function of each line in the tutorial is:
m = Microphone.get();
This tells Flash to start taking input from the microphone connected to the computer.
_root.attachAudio(m);
This line attaches the audio to the _root, so that every object can access it with the object m.
m.setUseEchoSuppression(false);
This prevents that awful echo from happening, and it is also accessible in the Flash movie properties and settings.
onEnterFrame = function () {
circle._xscale = circle._yscale = m.activityLevel + 50;
};
This section of code scales our circle movie clip based on the activity, or noise, level of our microphone. The activityLevel command returns a value between 0 and 100, depending on the microphone input. In order to get an activity level of 0, your microphone should be really REALLY good!
We have provided the FLA that you can use to see the above code/animation in action:
If this tutorial isn't working please contact me, either me (joppe) or frost_oni in the forums, so we can change the things that aren't working or to help you out. And this has only been tested in MX 2004.
Ok. Now this tutorial is over and I hope you learned something. Before I forget, let's give a big applause to frost_oni for writing the script! I wanted him to also write this tutorial, but I ended up doing it so THANK YOU FROST!
(response from frost: Yes, I am a lazy man....!)
Cheers!
Just a final word before we wrap up. What you've seen here is freshly baked content without added preservatives, artificial intelligence, ads, and algorithm-driven doodads. A huge thank you to all of you who buy kirupa's books, became a paid subscriber, watch the videos, and/or interact on the forums.
Your support keeps this site going!
- Joppe & Frost_Oni
:: Copyright KIRUPA 2026 //--