views:

478

answers:

3

i have something like this

 private var video:Video;
  ...
 private function init():void {
           ...

            nc = new NetConnection();
            nc.connect(null);

            ns = new NetStream(nc);
            ns.play("my flv url");
            ns.client = nsClient;

            video = new Video();
            video.attachNetStream(ns);
            videoDisplay.addChild(video);
        }

which property should i change or bind a slider to in order to be able to change the sound volume ?

+1  A: 

You should use the VideoDisplay object, which has a volume property.

robmcm
+1  A: 

you can set it like this in AS3 VideoDisplay.voulme = 0.5;

else in MXML style you can do as shown here along with a binded slider.

http://blog.flexexamples.com/2008/08/24/setting-the-volume-on-a-videodisplay-control-in-flex/#more-762

shivaspk
A: 

Controlling Embedded Sounds with JavaScript

http://java.pakcarid.com/Cpp.aspx?sub=381&ff=3030&topid=40&sls=25

lois