8 Replies Latest reply on May 25, 2006 1:35 PM by flashfloozie

    add timeline action after progressive dload video plays

    flashfloozie
      I need to have something happen like goto fame (3) only after the video finishes. A listener or something? Add a script comand to the last frame of the movie?

        • 1. Re: add timeline action after progressive dload video plays
          Level 7
          on frame where your mediaDisplay resides add this code:

          stop();
          var myListener: Object = new Object();
          myListener.complete = function(eventObj: Object) {
          trace("media is Finished");
          gotoAndPlay("next1");
          };
          myMedia.addEventListener("complete", myListener);

          //"next1" is a frame label *after* your video
          //"myMedia" is the instance name of your mediaPlayer.

          hope this helps.

          ******************************************
          --> **Adobe Certified Expert**
          --> www.mudbubble.com
          --> www.keyframer.com




          flashfloozie wrote:
          > I need to have something happen like goto fame (3) only after the video finishes. A listener or something? Add a script comand to the last frame of the movie?
          >
          >
          • 2. Re: add timeline action after progressive dload video plays
            .:}x-=V!P=-x{:. Level 3
            sounds like you know your options allready
            • 3. Re: add timeline action after progressive dload video plays
              flashfloozie Level 1
              I know names only but no clue how to set up a listener, and I've tried to add AS to movie but it seems to only be for adding keypress actions. Cant get a goto frame to work
              • 4. Re: add timeline action after progressive dload video plays
                flashfloozie Level 1
                Thanks for the help. but not working for me

                Added mc named shellyvid to frame one.

                Added other content on frame 2 labeled done
                this code on frame one

                stop();
                var myListener: Object = new Object();
                myListener.complete = function(eventObj: Object) {
                trace("media is Finished");
                gotoAndPlay("done");
                };
                shellyvid.addEventListener("complete",myListener);

                tried setting mc "export for AS
                no change
                • 5. Re: add timeline action after progressive dload video   plays
                  Level 7
                  no - why are you adding a Movie Clip and giving it an instance? That code is a listener for the
                  mediaPlayer re-read my explanation - i said to add the instance to the mediaPlayer - in your
                  original post you said you wanted a gotoAndPlay after a video was done playing - so i had to assume,
                  given no specifics, that you are using a mediaPlayback component with an external FLV file. I think
                  at this point you need to explain in greater detail what your movie contains, what it is calling
                  externally (if anything) and how exactly you have it setup.

                  ******************************************
                  --> **Adobe Certified Expert**
                  --> www.mudbubble.com
                  --> www.keyframer.com




                  flashfloozie wrote:
                  > Thanks for the help. but not working for me
                  >
                  > Added mc named shellyvid to frame one.
                  >
                  > Added other content on frame 2 labeled done
                  > this code on frame one
                  >
                  > stop();
                  > var myListener: Object = new Object();
                  > myListener.complete = function(eventObj: Object) {
                  > trace("media is Finished");
                  > gotoAndPlay("done");
                  > };
                  > shellyvid.addEventListener("complete",myListener);
                  >
                  > tried setting mc "export for AS
                  > no change
                  >
                  >
                  • 6. Re: add timeline action after progressive dload video   plays
                    flashfloozie Level 1
                    Without the mc it works fine, but I need the component in a mc because I need the timeline to continue on to fade text in and out
                    I tried to use this._parent.gotoAndPlay("done") but to no avail. Like this

                    stop();
                    var myListener: Object = new Object();
                    myListener.complete = function(eventObj: Object) {
                    trace("media is Finished");
                    this._parent.gotoAndPlay("done");
                    };
                    shellyvid.addEventListener("complete",myListener);


                    Really appreciate the help

                    ff

                    ps
                    Also: On the parameters for the component in flash is there a "name" and "value" I can add there to accomplish this?

                    • 7. Re: add timeline action after progressive dload video     plays
                      Level 7
                      ok - so if your media component is in a MC then you just need to target the MC then the component -
                      so give your MC an instance name also:


                      stop();
                      var myListener: Object = new Object();
                      myListener.complete = function(eventObj: Object) {
                      trace("media is Finished");
                      _level0.gotoAndPlay("done");
                      };
                      MCinstaneName.shellyvid.addEventListener("complete",myListener);

                      //_level0 is the main timeline
                      //MCinstanceName is the movie clips' instancename that contains your component.

                      ******************************************
                      --> **Adobe Certified Expert**
                      --> www.mudbubble.com
                      --> www.keyframer.com




                      flashfloozie wrote:
                      > Without the mc it works fine, but I need the component in a mc because I need
                      > the timeline to continue on to fade text in and out
                      > I tried to use this._parent.gotoAndPlay("done") but to no avail. Like this
                      >
                      > stop();
                      > var myListener: Object = new Object();
                      > myListener.complete = function(eventObj: Object) {
                      > trace("media is Finished");
                      > this._parent.gotoAndPlay("done");
                      > };
                      > shellyvid.addEventListener("complete",myListener);
                      >
                      >
                      > Really appreciate the help
                      >
                      > ff
                      >
                      > ps
                      > Also: On the parameters for the component in flash is there a "name" and
                      > "value" I can add there to accomplish this?
                      >
                      >
                      >
                      • 8. Re: add timeline action after progressive dload video     plays
                        flashfloozie Level 1
                        Fantastic! It works perfectl. I really appreciate you taking the time to help me with this.

                        ff

                        any place I can read up on adding parameters to cue points?