title: Detect NetStream events with AS3 Video Object (not component)
body: <p>I have created a FLV video player using the AS3 flash.media.Video object (not the FLV playback component) and I am trying to listen for meta events and Cue Points embedded in the FLV video but I am not receiving any when I trace the movie. The cue points are not being created dynamically, they are in the FLV video.</p>
  
  <p>Video embed code:</p>
  
  <pre><code>    // Initialize net stream
  nc = new NetConnection();
  nc.connect (null); // Not using a media server.
  ns = new NetStream(nc);
  // Add video to stage
  vid = new Video(456,675);
  addChild (vid);
  // Add callback method for listening on
  // NetStream meta data
  client = new Object();
  ns.client = client;
  client.onMetaData = this.nsMetaDataCallback;
  client.onCuePoint = this.onCuePoint; 
  // Play video
  vid.attachNetStream ( ns );
  ns.play ("flv/00_010.flv");
  </code></pre>
  
  <p>callback handlers in the same class as the above code:</p>
  
  <pre><code>public function onCuePoint(info:Object):void { 
  trace("cuePoint: time = " + info.time + " name = " + info.name + " type = " + info.type); 
  if (ns) ns.pause();
  }
  
  public function nsMetaDataCallback (mdata:Object):void {
  trace (mdata.duration);
  }
  </code></pre>
  
  <p>Is there anything I am missing have wrong to capture events from my net stream?</p>