1 Reply Latest reply on Sep 29, 2013 1:20 PM by MARKARKARK

    preload flv in AS2

    MARKARKARK Level 1

      Hello,

       

      I am loading a flv that I have posted on my site.  I am using the script,

       

      var nc:NetConnection = new NetConnection();

      nc.connect(null);

      var ns:NetStream = new NetStream(nc);

      qa1.attachVideo(ns);

      ns.play("http://www.mysite.com/a1.flv");

      ns.onCuePoint = function(evt:Object){

          trace(evt.name);

          trace(evt.time);

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

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

              gotoAndPlay(150);

          } 

      };

       

      I then have a video player below with the name, "qa1."  When I load it each video skips while it is playing the first time it is played.  Is there a way to preload this so it is smooth?

       

      Thanks,

       

      Mark.