5 Replies Latest reply on Sep 12, 2006 1:52 PM by ThomasJojo

    Listeners and FLV Cue Points

    Paul_Ostryzniuk
      Hi,

      I'm pretty sure this is simple, it's just that I've never used a listener before.

      I want to play an flv and use cue points in the flv to have text in a dynamic text field change, just to describe what is playing.

      Any help would be greatly appreciated.
        • 1. Re: Listeners and FLV Cue Points
          Level 7
          Paul Ostryzniuk wrote:

          > Hi,
          >
          > I'm pretty sure this is simple, it's just that I've never used a listener
          > before.
          >
          > I want to play an flv and use cue points in the flv to have text in a dynamic
          > text field change, just to describe what is playing.
          >
          > Any help would be greatly appreciated.

          What help do you need exactly?

          Basically, a listener just sets an event that simply fires off a
          function that you write.

          myMovieClip.onMyNewListener = function() {
          // do something when the event hits
          };

          -Richard
          • 2. Re: Listeners and FLV Cue Points
            Paul_Ostryzniuk Level 1
            Richard,

            Thanks for your reply. I know I need a listener to activate something when a cue point in my FLV is reached, it's just that I've never written the code for a listener before!

            If I can explain further what I intend to do...

            I will have an FLV called "advert01.flv" with a cue point at the very beginning called "start" being played in a FLVPlayback component with the instance name "ad_playback" . When the cue point "start" is reached (straight away) I want a dynamic text field with the var name "ad_description" to display some descriptive text.

            Would my code go along the lines of...

            ad_playback.onCuePointListener = function(){
            if cuePoint = "start"{
            ad_description="The advert is playing and is funny";
            }
            }

            ...or am I a million miles from getting it right?

            Thanks for your help.
            • 3. Re: Listeners and FLV Cue Points
              ThomasJojo
              Hi

              Im looking for the same. I do have a project where I also would like to LINK to a sertain video, the cue point, so it start play.

              I figured out that then I need to create the NAVIGATION cue points,

              And for the cue point that trigger the events to happend as you describe, that I also want to do, I need to use the cue points Event.

              But what do I write as code to call the event to happen? and so on.

              Please help somebody. I do have a budget for this, so if somebody want to earn some dollars, please make contact within a few days

              brgds,

              Thomas .
              • 4. Re: Listeners and FLV Cue Points
                markoconnell Level 1
                Did anyone ever get a clear answer on this? I'm trying to figure out the same thing.

                tia-

                • 5. Re: Listeners and FLV Cue Points
                  ThomasJojo Level 1
                  yes.. . in the frame you have your videoclip (flv) place this listener:

                  var introListener:Object = new Object();
                  introListener.cuePoint = function(eventObject:Object):Void {
                  if (eventObject.info.name == "end") {
                  //loadMovieNum("dina_video_main1.swf", 3); //works well
                  gotoAndPlay("loadOther"); //works well
                  }
                  };
                  Intro_Flv.addEventListener("cuePoint", introListener);
                  stop();

                  Intro_Flv is the Name on the Instance(the video)

                  Your cuepoint EVENT is named END , and it then jumps to a frame named loadOther, ther you can put another movie.

                  or you can load a movie or a symbol...

                  .thomas | www.taon.no