5 Replies Latest reply on Jun 9, 2009 8:04 PM by MediaVeli

    Goto Scene at end of FLV

    Level 1
      I have an flv video playing from a FLV Playback component. I am trying to have the movie goto the next scene at the end of the FLV video. I have go through numerous tutorials online to get the action to do this, but to no avail. I have tried both addeventlisteners and NS. Can someone please tell me the easy way to have the movie advance to the next scene after the flv and where the AS has to be to get the movie to function properly.

      Thanks, I appreciate your help.


        • 1. Re: Goto Scene at end of FLV
          ChaseG2
          I am interested in seeing this done too.
          • 2. Re: Goto Scene at end of FLV
            Level 7
            Cireworx wrote:
            > I have an flv video playing from a FLV Playback component. I am trying to have
            > the movie goto the next scene at the end of the FLV video. I have go through
            > numerous tutorials online to get the action to do this, but to no avail. I
            > have tried both addeventlisteners and NS. Can someone please tell me the easy
            > way to have the movie advance to the next scene after the flv and where the AS
            > has to be to get the movie to function properly.
            >
            > Thanks, I appreciate your help.

            First place some label on the frame you like to target, for example "LabelNameHere"
            Then give the FLVPlayback component instance name "player" and place the following
            action on the timeline frame:

            stop();
            player.addEventListener("complete",function (event:Object) { gotoAndStop("LabelNameHere");});



            --
            Best Regards

            Urami


            --
            "Never play Leap-Frog with a Unicorn."


            <urami>
            If you want to mail me - DO NOT LAUGH AT MY ADDRESS
            </urami>
            • 3. Re: Goto Scene at end of FLV
              Level 1
              I have tried that and it is still not working. Any more advise?

              Eric
              • 4. Re: Goto Scene at end of FLV
                Level 7
                Cireworx wrote:
                > I have tried that and it is still not working. Any more advise?
                >
                > Eric

                It's an AS 2.0 so if you are using CS3 set to AS 3 it won't work.
                It's very straight forward action so if it does not work, you are missing
                something. A mistake somewhere on the way.


                --
                Best Regards

                Urami


                --
                "Never play Leap-Frog with a Unicorn."


                <urami>
                If you want to mail me - DO NOT LAUGH AT MY ADDRESS
                </urami>
                • 5. Re: Goto Scene at end of FLV
                  MediaVeli

                  Urami, you are awesome,

                   

                  Believe it or not, I've been searching for this code for hours. It's working perfectly for me. Thanks tons!!!

                   

                  Veli