03.05.2013 Views

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

name (Microphone.name property)<br />

public name : String [read-only]<br />

A string that specifies the name of the current sound capture device, as returned by the sound<br />

capture hardware.<br />

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

Example<br />

The following example displays information about the sound capturing device(s) on your<br />

computer system, including an array of names <strong>and</strong> the default device.<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 default device is: "+active_mic.name+newline+newline;<br />

status_ta.text += "You have "+microphone_array.length+" device(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!