Monday, December 7, 2009

Idea & Content Development *3

SOFTWARE STUDIES

Microphone Interaction In Adobe Flash
My input of my installation is microphone which is for interactivity in Flash. The Microphone class lets you capture audio from a microphone attached to the computer that is running Flash Player.
Caution: Flash Player displays a Privacy dialog box that lets the user choose whether to allow or deny access to the microphone. Make sure your Stage size is at least 215 x 138 pixels; this is the minimum size Flash requires to display the dialog box.

Create a microphone object to begin capturing the audio:

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


Or attach the microphone object to a MovieClip object

this.createEmptyMovieClip(“sound_mc", 1)
var myMic:Microphone = Microphone.get();
sound_mc.attachAudio(myMic);


sound_mc.setUseEchoSuppression(true);
sound_mc.setSilenceLevel(50,0);


This is some of the action script in my flash application that respoding to microphone. Blowing to the microphone will allow to control the movement of a movie clip in flash.


*A computer can't attach two input microphones. If plug in two mirophones in that the computer also just will recognize as a microphone (same wave). I am thinking using 2 pc in my installation. 1 is running the working file (swf) and another just use to plug in another mic (php to connect to the 1st pc).

No comments:

Post a Comment