0 Replies Latest reply on Mar 7, 2007 10:33 PM by stephan.k

    cuepoints

    stephan.k Level 1
      Dear Flash Gurus

      How can I access all cuepoints at once, as an array or in whichever format they are stored? I need to get a list of all cuepoints with their positions when the flv file has finished loading, or when it starts loading. ... whichever.

      I've tried to use the onMetaData function but it doesn't appear to be able to read the cuepoints.

      ---------------------------------------------------------------------
      var nc:NetConnection = new NetConnection();
      nc.connect(null);
      var ns:NetStream = new NetStream(nc);
      myvideo.attachVideo(ns);
      ns.play("testmovie.flv");

      ns.onMetaData = function(infoObject:Object) {
      for (var propName:String in infoObject) {
      trace(propName + " = " + infoObject[propName]);
      }
      };


      ----------------
      But I get only the following traces... all cuepoints are undefined?:

      canSeekToEnd = true
      cuePoints = undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined ,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined ,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined ,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined ,undefined,undefined,undefined,undefined
      audiocodecid = 2
      audiodelay = 0.038
      audiodatarate = 96
      videocodecid = 4
      framerate = 29.9699859619141
      videodatarate = 400
      height = 240
      width = 360
      duration = 227.46

      -------------------------------

      any ideas on how to get all those cuepoint information?

      Any insight or leads appreciated.

      Thanks

      stephan