1 Reply Latest reply on Sep 9, 2011 5:30 PM by adninjastrator

    Flash Presentation with video and slides

    maxlomax187

      Hi,

       

      Im building a flash presentation in AS2.

       

      As the FLA video plays I have timed cue point that will make a slide appear to the side of the video.

      The video will contain around 30 cue points but I dont know how to do the action script.

       

      I currently have the below that works for one event. How do I do multiple events.

       

      myFlvPlayback1.addEventListener ( "cuePoint", this );
      function cuePoint ( eventObj:Object )
      {
      gotoAndPlay("1");

      }

        • 1. Re: Flash Presentation with video and slides
          adninjastrator Level 4

          Here is one example which uses NetStream to play the video. I believe there are some slight differences in the cue point code for NetStream compared to the FLVPlayback component... but perhaps you can glean something from this:

           

          // This code controls the cue points //
          ns.onCuePoint = function(evt:Object){
              trace(evt.name);
              trace(evt.time);
              if(evt.name == "play_vid1") {
                  trace("YO!Loading wide_holder!");
                  wide_holder.loadMovie("rm/images/black_bear.swf");
              }

              if(evt.name == "play_vid2") {
            trace("YO!Loading standard_holder!");
                  standard_holder.loadMovie("rm/images/sqis.swf");
              }
          };

           

          Best wishes,

          Adninjastrator