Monday, April 25, 2011

HEART PROJECTION

The heart projection that will be outline of the boxes will glow when there is sound detected so import the heart image from Illustrator and make into a movie clip in Flash . Then I add the coding and it will detect the sound .

Here is the coding :

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

micInterval = setInterval (this,"micCheck",20);
function micCheck (){
heart._alpha = myMic.activityLevel;
}



No comments:

Post a Comment