0 Replies Latest reply on Oct 6, 2009 10:42 PM by deansawyer

    Cue points - Non-Component-based, NetStream class to gotoAndPlay?

    deansawyer Level 1

      Hello all,

       

      I am trying (unsuccessfully) to utilse cue points in my flv (my_video) to jump to places in my timeline. My flv's are placed within a movieclip if this is helpful? I've learnt alot from this website (Goldmine for anyone needing help) http://www.quip.net/blog/2007/flash/how-to-use-flash-video-cue-points

      but i just don't know enough about coding to get it to work. I've done a trace of my flv and this is the information it came back with;

       

      onCuePoint:
      parameters =
      web1: website1
      type = event
      time = 3.009
      name = web1
      ---------
      onCuePoint:
      parameters =
      web2: website2
      type = event
      time = 10.127
      name = web2
      ---------
      onCuePoint:
      parameters =
      web3: website3
      type = event
      time = 17.866
      name = web3

       

      I've tried to 'fudge' my way through this but don't understand the language?! I exprted the flv with embeded cue points called web1, web2 & web3 and am trying to get these to jump to the main timeline (out of the mc) to their respective labels (web01, web02 & web03) Whilst I was embedding those cue poitns i also added event names (also web1, 2 & 3) and  values of website1,website2 & website3 -no idea why just thought they had to be filled?

       

      Just to reiterate i'm not using components and I am using the net stream class.

      Help!

      ...please!

       

      Here's my code so far;

       

      ns.onCuePoint = function(evt:Object):Void {
        trace(evt.name);
        trace(evt.time);
        trace(evt.parameters);
      }

       

      var listenerObject:Object = new Object();
      listenerObject.cuePoint = function(eventObject:Object):Void {
      // Put any code you like here
      trace("web1: " + eventObject.info.name);
      trace("event: " + eventObject.info.type);
      if(eventObject.info.name=="web1"){
      gotoAndStop("web01");
      }
      }
      my_video.addEventListener("cuePoint", listenerObject);