<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
private var mic:Microphone;
private function init():void
mic = Microphone.getMicrophone();
private function onMicStatus(event:StatusEvent):void
if (event.code == "Microphone.Unmuted")
trace("Microphone access was allowed.");
else if (event.code == "Microphone.Muted")
trace("Microphone access was denied.");
I changed it but now the errors are:
1120: Access of undefined property mic.
1120: Access of undefined property onMicStatus.
Oops, sorry , actually it seems to work now. Thank you!
Hmm...still some troubles..seems that I got rid of the error but actually nothing happens when I give a signal via microphone. Any ideas?