03.07.2013 Views

Guide de reference du langage ActionScript 2.0 - PowWeb

Guide de reference du langage ActionScript 2.0 - PowWeb

Guide de reference du langage ActionScript 2.0 - PowWeb

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

var active_mic:Microphone = Microphone.get();<br />

trace(active_mic.muted);<br />

Voir également<br />

obtenir (métho<strong>de</strong> Microphone.get), onStatus (gestionnaire<br />

Microphone.onStatus)<br />

name (propriété Microphone.name)<br />

public name : String [lecture seule]<br />

Chaîne spécifiant le nom <strong>du</strong> périphérique <strong>de</strong> capture <strong>de</strong> son actuel, tel que renvoyé par le<br />

matériel <strong>de</strong> capture <strong>de</strong> son.<br />

Disponibilité : <strong>ActionScript</strong> 1.0 ; Flash Player 6<br />

Exemple<br />

L'exemple suivant affiche <strong>de</strong>s informations sur le(s) périphérique(s) <strong>de</strong> capture <strong>du</strong> son<br />

présent(s) sur votre système informatique, y compris un tableau <strong>de</strong> noms et le périphérique<br />

par défaut.<br />

var status_ta:mx.controls.TextArea;<br />

status_ta.html = false;<br />

status_ta.setStyle("fontSize", 9);<br />

var microphone_array:Array = Microphone.names;<br />

var active_mic:Microphone = Microphone.get();<br />

status_ta.text = "The <strong>de</strong>fault <strong>de</strong>vice is: "+active_mic.name+newline+newline;<br />

status_ta.text += "You have "+microphone_array.length+" <strong>de</strong>vice(s)<br />

installed."+newline+newline;<br />

for (var i = 0; i

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!