# inputMic = Microphone

**URL:** <https://forum.kirupa.com/t/inputmic-microphone/261976>\
**Category:** flash\
**Created:** [June 2, 2008, 10:31am UTC](https://forum.kirupa.com/t/inputmic-microphone/261976 "2008-06-02T10:31:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikrant29nov](https://avatars.discourse-cdn.com/v4/letter/v/eb9ed0/32.png) [@vikrant29nov](https://forum.kirupa.com/u/vikrant29nov)\
**Post date:** [June 2, 2008, 10:31am UTC](https://forum.kirupa.com/t/inputmic-microphone/261976/1 "2008-06-02T10:31:28Z")

</div>

I want to call particular frame on using **microphone**.

_example:_

Suppose i speak in the microphone and the volume is **\>10 and \<20.**  
the command

**gotoAndPlay(“Fire”);**

must play.

Please help.

---

<div class="post-metadata">

**Author:** ![randomagain](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@randomagain](https://forum.kirupa.com/u/randomagain)\
**Post date:** [June 2, 2008, 10:36am UTC](https://forum.kirupa.com/t/inputmic-microphone/261976/2 "2008-06-02T10:36:21Z")

</div>

it’d help maybe if you posted example and tutorials you have found.

the only examples I have found on this are cs3

---

<div class="post-metadata">

**Author:** ![vikrant29nov](https://avatars.discourse-cdn.com/v4/letter/v/eb9ed0/32.png) [@vikrant29nov](https://forum.kirupa.com/u/vikrant29nov)\
**Post date:** [June 2, 2008, 10:38am UTC](https://forum.kirupa.com/t/inputmic-microphone/261976/3 "2008-06-02T10:38:33Z")

</div>

**Here is the example:**

function init()  
{  
createEmptyMovieClip(“micAudio”, 3);  
micAudio.attachAudio(Microphone.get());  
inputMic = Microphone.get();  
inputMic.setUseEchoSuppression(0);  
inputMic.setRate(8);  
inputMic.setSilenceLevel(0);  
inputMic.setGain(40);  
gainlevel.\_y = 85;  
inputSound = new Sound(micAudio);  
inputSound.setVolume(0);  
nosignalmax = 100;  
maxrecord = 2500;  
amprunlevel = 50;  
records = new Array();  
} // End of the function  
Function.prototype.executeLater = function ()  
{  
var func = this;  
var \_loc4 = arguments.shift();  
var \_loc3 = arguments.shift();  
var args = arguments;  
var intervalId = setInterval(function (obj)  
{  
func.apply(obj, args);  
clearInterval(intervalId);  
}, \_loc4, \_loc3);  
};  
MovieClip.prototype.dolevel = function ()  
{  
};  
MovieClip.prototype.dosound = function (levelamp)  
{  
if (levelamp \> 40 && levelamp \< 49 && this.accions == 0)  
{  
this.gotoAndPlay(“level1”);  
this.accions = 1;  
} // end if  
if (levelamp \> 50 && levelamp \< 59 && this.accions == 0)  
{  
this.gotoAndPlay(“level2”);  
this.accions = 1;  
} // end if  
if (levelamp \> 60 && levelamp \< 79 && this.accions == 0)  
{  
this.gotoAndPlay(“level3”);  
this.accions = 1;  
} // end if  
if (levelamp \> 80 && levelamp \< 90 && this.accions == 0)  
{  
this.gotoAndPlay(“level4”);  
this.accions = 1;  
} // end if  
if (levelamp \> 95 && this.accions == 0)  
{  
this.gotoAndPlay(“level5”);  
this.accions = 1;  
\_root.total = \_root.total - 1;  
if (\_root.total == 0)  
{  
pesada.gotoAndPlay(2);  
\_root.total = -1;  
} // end if  
if (\_root.total != 0 && \_root.total != -1)  
{  
\_root.texteFinal.\_visible = 0;  
sombra.play();  
} // end if  
if (\_root.total == -2)  
{  
\_root.texteFinal.\_visible = 100;  
\_root.texteFinal.play();  
} // end if  
} // end if  
};  
init();  
stop ();
