Example The following code attaches a microphone to (Web design)
Example The following code attaches a microphone to a movie clip. my_mic = Microphone.get(); this.attachAudio(my_mic); The following example shows how you can use a Sound object to control the sound associated with an FLV file. // Clip is the instance name of the movie clip // that contains the video object “my_video”. _root.Clip.my_video.attachVideo(_root.myNetStream); _root.Clip.attachAudio(_root.myNetStream); var snd = new Sound(”_root.Clip”); //To adjust the audio: _root.snd.setVolume(100); See also Microphone class, NetStream.play(), Sound class, Video.attachVideo() MovieClip.attachMovie() Availability Flash Player 5. Usage my_mc.attachMovie(idName, newName, depth [, initObject]) Parameters idName The linkage name of the movie clip symbol in the library to attach to a movie clip on the Stage. This is the name entered in the Identifier field in the Linkage Properties dialog box. newname A unique instance name for the movie clip being attached to the movie clip. depth An integer specifying the depth level where the SWF file is placed. initObject (Supported for Flash Player 6 and later) An object containing properties with which to populate the newly attached movie clip. This parameter allows dynamically created movie clips to receive clip parameters. If initObject is not an object, it is ignored. All properties of initObject are copied into the new instance. The properties specified with initObject are available to the constructor function. This parameter is optional. Returns A reference to the newly created instance. Description Method; takes a symbol from the library and attaches it to the SWF file on the Stage specified by my_mc. Use removeMovieClip() or unloadMovie() to remove a SWF file attached with attachMovie(). 488 Chapter 12: ActionScript Dictionary
Go visit our java server pages services for a reliable, lowcost webhost to satisfy all your needs.