# Controlling two NetStream videos

**URL:** <https://forum.kirupa.com/t/controlling-two-netstream-videos/155508>\
**Category:** Uncategorized\
**Created:** [July 18, 2005, 1:29pm UTC](https://forum.kirupa.com/t/controlling-two-netstream-videos/155508 "2005-07-18T13:29:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ro\_core](https://avatars.discourse-cdn.com/v4/letter/r/b38774/32.png) [@ro\_core](https://forum.kirupa.com/u/ro_core)\
**Post date:** [July 18, 2005, 1:29pm UTC](https://forum.kirupa.com/t/controlling-two-netstream-videos/155508/1 "2005-07-18T13:29:31Z")

</div>

I have two videos, and I control them using ns1 and ns2, the NetStream objects. I want to stop the sound of one of them, then turn on the sound of the other. When I use the following two lines, I try to use audio1 and audio2 to start and stop the sounds using setVolume, but it doesn’t work.

```auto

this.createEmptyMovieClip("snd1", 0);
snd1.attachAudio(ns1);
audio1 = new Sound(snd1);

this.createEmptyMovieClip("snd2", 0);
snd2.attachAudio(ns2);
audio2 = new Sound(snd2);

```

Help is greatly appreciated.
