MACROMEDIA FLASH MEDIA SERVER 2-CLIENT-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR FLASH MEDIA SERVER 2 Reference page 81

Client-side actionscript language reference for flash media server 2
Table of Contents

Advertisement

NetStream.attachAudio()
Availability
Flash Player 6.
Flash Communication Server MX 1.0.
Usage
public attachAudio(source:Microphone) : Void
Parameters
The source of the audio to be transmitted. Valid values are a Microphone object
source
and
.
null
Returns
Nothing.
Description
Method; specifies whether audio should be sent over the stream (from a Microphone object
passed as
) or not (
source
publisher of the specified stream.
You can call this method before or after you call the
actually begin transmitting. Subscribers who want to hear the audio must call a
method.
NetStream.play()
Subscribers can also attach their incoming audio to a movie clip and then create a Sound
object to control some aspects of the sound. For more information, see
MovieClip.attachAudio()
Example
The following code attaches a microphone to a network stream:
my_netstream.attachAudio(active_mic);
See also
,
Microphone class
NetStream.publish()
passed as
null
source
.
MovieClip.attachAudio()
,
NetStream.receiveAudio()
). This method is available only to the
NetStream.publish()
,
NetStream.attachVideo()
method and
,
NetStream class
81

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MEDIA SERVER 2-CLIENT-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR FLASH MEDIA SERVER 2 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Media server 2

Table of Contents