# FLV Adjust Sound

**URL:** https://forum.kirupa.com/t/flv-adjust-sound/116632
**Category:** Uncategorized
**Created:** [July 20, 2004, 3:44am UTC](https://forum.kirupa.com/t/flv-adjust-sound/116632 "2004-07-20T03:44:52Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![lomelino](https://avatars.discourse-cdn.com/v4/letter/l/a9a28c/32.png) [@lomelino](https://forum.kirupa.com/u/lomelino)
#### Post date: [July 20, 2004, 3:44am UTC](https://forum.kirupa.com/t/flv-adjust-sound/116632/1 "2004-07-20T03:44:52Z")

</div>

Is there a way to adjust the sound volume of a FLV file? I’ve got an flv playing into an embedded video component. I’m not using the media playback component (which has the sound adjustment built in). Rather I’m using the embedded video component so I can load in movies with variables. I’m using the attachVideo method and am creating a video object called my\_Video. It seems as if I should be able to call the object like my\_Video.setVolume(20) or whatever.

I’m creating the netConnection just like the help outlines.

```auto
var netConn:NetConnection = new NetConnection();
// Create a local streaming connection:
netConn.connect(null);
// Create a NetStream object and define an onStatus() function:
var netStream:NetStream = new NetStream(netConn);

// Attach the NetStream video feed to the Video object:
my_Video.attachVideo(netStream);

```

Thanks for any and all help.

Joshua

---

<div class="post-metadata">

### Author: ![dene22](https://avatars.discourse-cdn.com/v4/letter/d/ecc23a/32.png) [@dene22](https://forum.kirupa.com/u/dene22)
#### Post date: [July 26, 2004, 12:59pm UTC](https://forum.kirupa.com/t/flv-adjust-sound/116632/2 "2004-07-26T12:59:30Z")

</div>

You should use the MovieClip.attachAudio() method which you see at [this link.](http://livedocs.macromedia.com/flash/mx2004/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004_Documentation&file=12_as375.htm)

```auto

// 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);

```

Dene.
