5 Replies Latest reply on Sep 24, 2013 8:41 PM by kglad

    video plays audio twice in cs4 as2

    MARKARKARK Level 1

      Hello,

       

      I have a video I have in a layer, in the layer above I have this code.

       

      var nc:NetConnection = new NetConnection();

      nc.connect(null);

      var ns:NetStream = new NetStream(nc);

      intro.attachVideo(ns);

      ns.play("http://www.myvideo.com/intro.flv");

      ns.onCuePoint = function(evt:Object){

          trace(evt.name);

          trace(evt.time);

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

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

              gotoAndPlay(50);

          } 

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

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

              gotoAndPlay(50);

          } 

      };

       

      This same code worked in another project.  When play this, (Ctrl Enter)  it plays the audio twice slightly off. Thank you for your help.

       

      Mark.