1 Reply Latest reply on May 8, 2007 8:48 AM by abeall

    [AS2] Controlling loaded FLV sound??

    abeall Level 3
      While I haven't any hints in the documentation on how to control a dynamically loaded FLV's sound(volume), everywhere I read that you create a Sound object on the parent MovieClip. This isn't working

      var nc = new NetConnection();
      nc.connect(null);
      var ns = new NetStream(nc);
      mc.vid.attachVideo(ns); // MovieClip on stage with Video instance named "vid"
      ns.play('TestVideo.flv'); // this all works, video loads and plays full volume

      function onMouseUp(){
      var snd = new Sound(mc);
      snd.setVolume(25);
      }

      What am I doing wrong?