0 Replies Latest reply on Jul 10, 2008 3:25 AM by westonwoodbury

    listenerObject control timeline

    westonwoodbury Level 1

      I've set up a flash with FLV HTTP stream, and successfully set up the following response to a cuepoint:

      vid.contentPath = "CPI_introduces.flv";
      var listenerObject:Object = new Object();
      listenerObject.cuePoint = function(eventObject:Object):Void {
      vid.addEventListener("cuePoint", listenerObject);

      Problem is, the timeline plays to the point I want it to, and then if the user scrolls back or plays again, the timeline is progressed already. I need it to, upon pressing play or when using seek slider, goto and stop frame 1 again (visually clearing the screen until it hits the cue point again). Based on the cuePoint script, I thought something like this would work:

      vid.contentPath = "mhpp_preview_3.flv";
      var listenerObject:Object = new Object();
      listenerObject.play = function(eventObject:Object) {

      But it seems to have no response. The instance name is vid , and the code I'm placing on the last frame, where it stops when the timeline plays.

      Any insight?