0 Replies Latest reply on Mar 2, 2009 5:21 PM by collosal-G

    FLV Playback Control

    collosal-G Level 1
      Hi all,

      I am using the NetStream class in my Flash file, and want to pause the video for a few seconds before it starts playing and after it is done. What I want to happen is to have the video start, paused on the first frame for a few seconds. Then I want the video to stop on the last frame, paused for a few seconds. I know I can find the first frame using the time property, but how do I find the last frame? Do I need to add a cue point to the FLV and use the name property??

      Here is the code I have:

      var nc:NetConnection = new NetConnection();
      var ns:NetStream = new NetStream(nc);

      ns.onCuePoint = function(infoObject:Object) {
      if (infoObject.time == 0) {

      var introInterval:Number = setInterval (introPause, 3000);

      function introPause () {
      clearInterval (introInterval);