5 Replies Latest reply on Jan 29, 2010 7:13 AM by kglad

    Newbie Simple AS 2 Problem

    Larry_Lou

      Help!

      I have created a .flv-clip in After Effects (CS3) and I have a .FLA-File with animation and buttons. I need to show the .FLV-clip and then continue seamlessly with the .FLA-File. The .FLV-Clip is in Frame one and the .FLA-Animation starts in frame 2.

      If I don't use a script, the .FLV-Clip gets skipped. If I use "stop()" in frame one, the FLV-Clip plays but stops (with a rewind to the beginning). How can I get it to keep playing after the end of the .FLV-Clip?

      Thank you for any help!

        • 1. Re: Newbie Simple AS 2 Problem
          kglad Adobe Community Professional & MVP

          you shouldn't import your flv into the fla.  add an flvplayback component (with a skin or no skin that suits your needs) to frame 1 and in the parameters panel assign the contentPath to the (relative, not absolute) path to your flv.  add a stop() to frame 1.  once you've done that and your flv plays successfully you can add code that will advance your timeline to frame 2 when your flv completes play.

          1 person found this helpful
          • 2. Re: Newbie Simple AS 2 Problem
            Larry_Lou Level 1

            Thanks for the first step. Now I'm having trouble with:

            "once you've done that and your flv plays successfully you can add code that will advance your timeline to frame 2 when your flv completes play."

            I have the following script in Frame 1 where the FLVPlayback Component is:

             

            my_FLVPlayback.contentPath = "RVR-Film_1_1.flv";//das zu spielende FLV

             

             

            vidListnr = new Object();

            vidListnr.complete = function(evtObject){

                trace("video-ende");     

                    _root.gotoAndPlay(2);

            }

             

             

            RVR-Film_1_1.addEventListener("complete",vidListnr);

             

            stop(); 

             

            The Clip (RVR-Film_1_1.flv) plays, but then it stops.

            Thanks for helping!

            • 3. Re: Newbie Simple AS 2 Problem
              kglad Adobe Community Professional & MVP

              use:

               


               

               

              my_FLVPlayback.contentPath = "RVR-Film_1_1.flv";//das zu spielende FLV

               

               

              vidListnr = new Object();

              vidListnr.complete = function(evtObject){

                  trace("video-ende");     

                      _root.gotoAndPlay(2);

              }

               

              my_FLVPlayback.addEventListener("complete",vidListnr);

               

              stop(); 

               


              • 4. Re: Newbie Simple AS 2 Problem
                Larry_Lou Level 1

                Thanks a million!

                • 5. Re: Newbie Simple AS 2 Problem
                  kglad Adobe Community Professional & MVP

                  you're welcome.