3 Replies Latest reply on Sep 29, 2006 2:20 AM by Newsgroup_User

    Stopping Flash Video help

    Level 7
      I have a problem with automaticly stopping external FLV video (in flash 8
      with Display component) at custom cue point. For example: if video is 400
      sec long, i wanted to stop it at 300 sec. I've tried with totalTime action
      but it only affect the slider. So, LuigiL sent me this solution which
      should, but - it doesn't work. Can you hel me fix the problem with stopping
      a FLV at a custom end point?

      myDisplay.totalTime=300;
      //use an object to listen for events
      var myDisplayListener:Object=new Object();
      //add event cuePoint to the object
      myDisplayListener.cuePoint=function(eventObj:Object){
      var index=eventObj.target.name;
      if(index=="stop"){
      myDisplay.stop();
      }
      }
      //set up the listener
      myDisplay.addEventListener("cuePoint",myDisplayListener);
      //add a cuepoint
      myDisplay.addCuePoint("stop",300);

      Thanks
      Luka