2 Replies Latest reply on Feb 8, 2010 1:51 PM by david.t.lanton

    VideoPlayer and adding Cue Points


      I'm having a tough time getting cue points to work with the new sparks VideoPlayer. In the documentation, it states that VideoDisplay has been replaced with VideoPlayer, but most of the examples on the web are for VideoDisplay.


      I'm calling the usual 2 classes from the mx namespace.


           import mx.events.CuePointEvent;
           import mx.controls.videoClasses.CuePointManager;


      then trying to dynamically add cue points like this:


      I then create an instance of the CuePointManager, with myVid [type sparks VideoPlayer]

           cuePointManager = new CuePointManager(myVid);


      then create a new cuePt Objectwith name and time properties and try to add it as a cue point:




      - myVid is the VideoPlayer instance

      - myCuePointManager is an instance of CuePointManage

      - cuePt is an Object with name and time


      I get errors about cooercing myVid [type sparks VideoPlayer]

      1067: Implicit coercion of a value of type spark.components:VideoPlayer to an unrelated type mx.controls.videoClasses:VideoPlayer
      1119: Access of possibly undefined property cuePointManager through a reference with static type spark.components:VideoPlayer


      Can someone please be very kind and give me a nudge in the right direction. I've been pulling my hair on it for a day now, and couldn't find any tutorials specifically on the new sparks VideoPlayer and how to add dynamic cue points to it.





      P.S. Video is big on the web. I would say that sorting out the VideoPlayer should be one of the top priorities in the new version of the SDK.