Store sound level

Hi,
I’m trying to develop a game that will use sound to move an mc. I want to be able to store where the level of the sound bar is after 3 seconds. Depending on how loud the player shouts the more power they will get.

This is what I have so far:

// set up microphone object
_root.createEmptyMovieClip(“myAudio”, 1001);
_root.myAudio.attachAudio(Microphone.get());
_root.myMic = Microphone.get();

// set up Interval to listen for microphone levels
micInterval=setInterval(function() {
// update mic level
_root.micLevel.bar._xscale=_root.myMic.activityLevel;

Just not sure on where to go from here. I tried searching the forums, but I’m not sure what to look for. Thanks in advance for any help.

try other sites for tutorials, I have seen one somewhere.

gotoandlearn.com
spehoirte? – some final-fantasy character’s name.
green sock?
scenaular? – always spell that one wrong

Hey, here’s a great tutorial to help you out! It doesn’t do exactly what you want, but I’m sure it I’ll give you a big head start: tutorial.

[QUOTE=randomagain;2334696]try other sites for tutorials, I have seen one somewhere.

gotoandlearn.com
spehoirte? – some final-fantasy character’s name.
green sock?
scenaular? – always spell that one wrong[/QUOTE]

Thanks! I’ll post the solution when I find it.