Sunday, 17 April 2011

ACTIONSCRIPT

Here are the action script for the sound detector:

myMic = Microphone.get();
attachAudio (myMic);

micInterval = setInterval (this,"micCheck",30);
function micCheck (){
micLevel.bar._xscale = myMic.activityLevel;
kokyong._alpha = myMic.activityLevel;
}

No comments:

Post a Comment