0 Replies Latest reply on Apr 23, 2009 5:48 AM by theatlasman

    Cue Points & FLVPlayback Component

    theatlasman Level 1

      What am I doing wrong?

       

      Condition:

      I have a FLVPlayback component on stage as videoContainer.pVideo;

      The source is loaded dynamically by user;

      the video playback is initiated by user via component skin;

       

      Here is the code:

      var nc:NetConnection = new NetConnection();

      nc.connect(null);

      var ns:NetStream = new NetStream(nc);

      videoContainer.pVideo.attachNetStream(ns);

       

      var customClient:Object = new Object();

      customClient.onCuePoint = cuePointDataHandler;

       

      ns.client = customClient;

       

      function cuePointDataHandler(cuePoint:Object):void

      {

      myDisplay.text="Hello";

      }

      Any help will be hugely appreciated. Thanks