3 Replies Latest reply: Aug 12, 2012 6:45 AM by adninjastrator RSS

    How to control volume in Netstream

    MARKARKARK Community Member

      Hello,

       

      I had a previous post but received no answer after a while.  I have a project in actionscript 2.0 using flash cs4.  It is a flash game.  I have the flv files loaded from my site using NetStream. Some of the videos volume is lower and I would like to adjust them without rerendering all of the videos.  I have gone on line and have tried many things, but none have worked and most have given error messages.  Below is the script I have been loading my flvs. 

       

      var nc:NetConnection = new NetConnection();

      nc.connect(null);

      var ns:NetStream = new NetStream(nc);

      aud1.attachVideo(ns);

      ns.play("http://www.mysite.org/video/myvideo/1.flv");

      ns.onCuePoint = function(evt:Object){

          trace(evt.name);

          trace(evt.time);

          if(evt.name == "c1") {

              trace("YO !Jump to 108!");

              gotoAndPlay(108);

          }

      };

      I have this script above the layer with my NetStream player. 

       

      Thank you for your help.

       

      Mark.