48
Client-Side ActionScript Language Reference
Example
The following code returns information on the array of audio devices:
var allMicNames_array:Array = Microphone.names;
trace("Microphone.names located these device(s):");
for(i=0; i < allMicNames_array.length; i++){
trace("[" + i + "]: " + allMicNames_array[i]);
}
For example, the following information could be displayed:
Microphone.names located these device(s):
[0]: Crystal SoundFusion(tm)
[1]: USB Audio Device
See also
Array class entry in the
ActionScript 2.0 Language Reference
,
Microphone.get()
,
Microphone.name
Microphone.onActivity
Availability
■
Flash Player 6.
■
Flash Media Server (not required).
Usage
public onActivity = function(
active
:Boolean) {}
Parameters
active
A Boolean value set to
true
when the microphone starts detecting sound,
false
when it stops.
Returns
Nothing.
Description
Event handler; invoked when the microphone starts or stops detecting sound. If you want to
respond to this event handler, you must create a function to process its
active
value.
To specify the amount of sound required to invoke
Microphone.onActivity(true)
, and the
amount of time that must elapse without sound before
Microphone.onActivity(false)
is
invoked, use
Microphone.setSilenceLevel()
.
Содержание FLASH MEDIA SERVER 2-CLIENT-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR FLASH MEDIA SERVER...
Страница 1: ...Client Side ActionScript Language Reference for Flash Media Server 2...
Страница 4: ...4 Contents...
Страница 148: ...148 Client Side ActionScript Language Reference...