Need Help: Adding Cuepoints in Actionscript 3

My question deals with adding a cuepoint in actionscript 3 using code. In flash 8, i made use of the FLVplayback component which included a method addASCuePoint(). In Actionscript 3, I am now using the standard method of creating a video object, except i can’t figure out how to use actionscript to add a cuepoint. In the [URL=“http://livedocs.adobe.com/flex/2/langref/flash/net/NetStream.html#event:onCuePoint”]AS3 LiveDocs entry for NetStream , it list only event and navigation as cuepoint types. [URL=“http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00003484.html”]Previously there was a third type of cuepoint: actionscript.

My code:


        public function LoadVideo()
        { 
          var nc:NetConnection = new NetConnection();
          nc.connect(null);
          var ns:NetStream = new NetStream(nc);
          var vid:Video = new Video(320, 240);
          addChild(vid);   
          vid.attachNetStream(ns);
          ns.play('Video31.flv');

          //This is where i want to attach cuepoints from an array of name and time values


          var netClient:Object = new Object();
          netClient.onMetaData = function(meta:Object)
          {              trace(meta.duration);
          };
          netClient.onCuePoint = handleCuePoint;
          ns.client = netClient;
        }               
        public function handleCuePoint(info:Object):void {
        trace("cuepoint: time=" + info.time + " name=" + info.name + " type=" + info.type);
        }

I am guessing one option is to create an onEnterFrame function that compares the NetStream.time to each value in my cuepoint array, and then do a addEventListener(EventType.ENTER_FRAME, onEnterFrame); Although this might work it requires my application to loop through my cuepoint array every single frame, which isn’t really efficient. I was hoping there was some built in way to add cuepoints. I would greatly appreciate any help on this issue.