1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
this.createTextField("muted_txt", this.getNextHighestDepth(), 350, 40, 150, 22);
muted_txt.autoSize = false;
muted_txt.html = true;
muted_txt.selectable = false;
muted_txt.htmlText = "<a href=\"asfunction:System.showSettings\"><u>Click Here</u></a> to Allow/Deny access.";
this.createEmptyMovieClip("sound_mc", this.getNextHighestDepth());
var active_mic:Microphone = Microphone.get();
sound_mc.attachAudio(active_mic);
active_mic.onStatus = function(infoObj:Object) {
micOff_txt._visible = active_mic.muted;
muted_txt.htmlText = "Status: <a href=\"asfunction:System.showSettings\"><u>"+infoObj.code+"</u></a>";
};
if(active_mic.muted){
this.createTextField("micOff_txt", this.getNextHighestDepth(), 0, 0, 100, 22);
micOff_txt.html = true;
micOff_txt.autoSize = true;
micOff_txt.htmlText = "<font size='40' color='#FF0000'>Mic: OFF</font>";
micOff_txt._x = (Stage.width-micOff_txt._width)/2;
micOff_txt._y = (Stage.height-micOff_txt._height)/2;
micOff_txt._visible = active_mic.muted;
}
this.createTextField("micOn_txt", this.getNextHighestDepth(), 0, 0, 100, 22);
micOn_txt.html = true;
micOn_txt.autoSize = true;
micOn_txt.htmlText = "<font size='40' color='#FF0000'>Mic: ON</font>";
micOn_txt._x = (Stage.width-micOn_txt._width)/2;
micOn_txt._y = (Stage.height-micOn_txt._height)/2;
if(active_mic.muted != true){
micOn_txt._visible=true;
} |
Partager