Hello there,
i add audio in code to can access mic however after finish and add private function also add handler event, test mic in platform but
Is dosent work i check mic in may computer is work fine i add the private function like it
private function onAudioClick(p_evt:MouseEvent):void
{
if ( p_evt.currentTarget.label == "Start My Audio" ) {
audioPub.publish();
p_evt.currentTarget.label = "Stop My Audio" ;
}else if (p_evt.currentTarget.label == "Stop My Audio" ){
audioPub.stop();
p_evt.currentTarget.label = "Start My Audio" ;
}
}
and the handler event like it
<mx:Button x="577" y="455" id="btn" click="onAudioClick(event)" toggle="false" width="31" height="40" enabled="true" icon="@Embed(source='assets/Mic.png')"/>
and flash bulider work fine no have any wrong or alert message in code but mic is doent work
any ideas, thanks