- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
this may come in handy:
cbMicrophones = new ComboBox();
cbMicrophones.dropdownWidth = 100;
cbMicrophones.width = 100;
cbMicrophones.prompt = "Microphones";
cbMicrophones.dataProvider = getMics();
addChild(cbMicrophones);
protected function getMics():DataProvider
{
var aMics:Array = Microphone.names;
var dp:DataProvider = new DataProvider();
for (var i:uint = 0;i < aMics.length; i++) {
dp.addItem( { label:aMics[i], data:i } );
}
return dp;
}
.......
this.audioPub.microphoneManager.selectedMic = Microphone.getMicrophone(cbMicrophones.selectedIndex);
Views
Replies
Total Likes