8 Replies Latest reply on May 18, 2014 2:05 AM by Joey Zap

    Jump between triggers?

    Joey Zap

      Hey guys,

       

      I´m having a new problem.


      My new problem is to find a way to jump between triggers.

       

      I made a compass animation, where you´re able to click right or left.

       

      When I click the Left_Button, the left line will play, trigger to trigger.
      When I click the Right_Button, It will reverse that line.

      Bildschirmfoto 2014-05-16 um 08.04.47.png

      The left line is for rotating clockwise. The right is for the other way.

       

      Is there a way to start directly with a right click? like a reverse loop?

      Or would it be possible to jump always between all this triggers?

       

      • N-NW1               sym.stop();
      • loop                   sym.play(7000);
      • Left_Button        sym.play();
        Right_Button      sym.playreverse();

       

      • Nreverse-NW1reverse   sym.stop();
      • loopreverse                    sym.play(18000)

      Thanks for helping.

      (and sorry for my bad englisch.)

        • 1. Re: Jump between triggers?
          -Rodney- Level 1

          Hi Joey, I may be misunderstanding your intent but here's what popped into my mind...

           

          Can you launch an initial loop that begins with the right click but then escapes to the left before getting to the end of the timeline.

          Example:

           

          sym.play(Right_Button);

           

          Note that this initial loop is created by using the 'complete' option on the dropdown menu.complete.jpg

           

          I'm new at this but it is my understanding that by not using 'complete' the process of looping (relooping?) back and forth through the whole timeline may not work very well.

          As I say... very new at this so my apologies if I'm way off track.

          1 person found this helpful
          • 2. Re: Jump between triggers?
            Joey Zap Level 1

            Hey -Rodney-,

             

            thanks for your tips.

             

            I think it won't work.

            every step from N to NE (sorry NW was wrong) is:

            trigger @ 7000

            sym.stop();

             

            trigger@ 7638

            sym.stop();

             

            etc.

             

            the left button Starts at N and jumps to the other triggers by clicking. (sym.play(); code)

            (Click

            sym.play();) --> N to NW ; NW to W; W to SW; etc. until NE. Its coded with sym.play(7000) (the clockwise loop)

             

            When I put the right button (sym.playreverse();)

            it will go back, the situation before.     -->     SW to W; W to NW; NW to N; BUT!!!! (My Problem!!!) I can´t go N to NE.

             

            The animation played the build up sequence! reverse....

             

            Is there a Code for this reverse loop?

            • 3. Re: Jump between triggers?
              -Rodney- Level 1

              As a workaround... until it gets resolved... perhaps you could animate it in reverse?

              Or would that just create a different problem?

              • 4. Re: Jump between triggers?
                Joey Zap Level 1

                it's already playing reverse. Until N but it won't go to NE. Instead it will reverse the whole start.

                • 5. Re: Jump between triggers?
                  -Rodney- Level 1

                  If you can provide a sample from your code that might clue me in to what I'm missing.

                   

                  I was playing with the example that comes with Edge and trying to isolate different parts of the loop and it seems to me that you might need a stop to keep the reverse play from returning all the way to the start?  Am I reading that correctly.

                   

                  Here's a snippet of what worked for me:

                   

                     sym.playReverse(2);

                     sym.stop("loop");

                   

                  Here upon execution the animation plays from 2 seconds in reverse heading toward the beginning (0) but it is stopped when it encounters the the label named "loop".

                  In my test playing begins again with the next mouse click

                   

                  It may be that you don't want it to wait for a mouse click so in that case adding a 'sym.play("loop");' on the next line after then stop might work.


                  Again, my apologies if I'm missing something.

                  Seeing your code (or at least the pertinent parts) would help.


                   

                  • 6. Re: Jump between triggers?
                    -Rodney- Level 1

                    I do note that you posted a good part of your code before.

                    I'm just (obviously) missing a key element.

                    • 7. Re: Jump between triggers?
                      -Rodney- Level 1

                      This isn't quite what you are looking for but perhaps it's a move in the right direction?

                       

                      It includes a combination of mouseovers and clicks to refine the location of the pointer in the middle of 4 buttons.

                      Mousing over will initiate rotation from that direction while clicking will cause the pointer to point at that direction.

                      I'd say the important part is that no specific number on the timeline is referenced but the label at that location is used instead.

                       

                       

                      Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 0, function(sym, e) {

                         sym.play();

                      });

                      //Edge binding end

                       

                      Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 1870, function(sym, e) {

                         sym.playReverse();

                      });

                      //Edge binding end

                       

                      Symbol.bindElementAction(compId, symbolName, "${_East}", "mouseover", function(sym, e) {

                         sym.play();

                         sym.stop("East");

                         sym.playReverse();

                      });

                      //Edge binding end

                       

                       

                      Symbol.bindElementAction(compId, symbolName, "${_West}", "mouseover", function(sym, e) {

                         sym.play();

                         sym.stop("West");

                         sym.playReverse();

                      });

                      //Edge binding end

                       

                      Symbol.bindElementAction(compId, symbolName, "${_South}", "mouseover", function(sym, e) {

                         sym.play();

                         sym.stop("South");

                         sym.playReverse();

                      });

                      //Edge binding end

                       

                      Symbol.bindElementAction(compId, symbolName, "${_North}", "mouseover", function(sym, e) {

                         sym.play();

                         sym.stop("North");

                         sym.playReverse();

                      });

                      //Edge binding end

                       

                       

                      Symbol.bindElementAction(compId, symbolName, "${_East}", "click", function(sym, e) {

                         sym.stop("East");

                      });

                      //Edge binding end

                       

                      Symbol.bindElementAction(compId, symbolName, "${_West}", "click", function(sym, e) {

                         sym.stop("West");

                      });

                      //Edge binding end

                       

                      Symbol.bindElementAction(compId, symbolName, "${_South}", "click", function(sym, e) {

                         sym.stop("South");

                      });

                      //Edge binding end

                       

                      Symbol.bindElementAction(compId, symbolName, "${_North}", "click", function(sym, e) {

                         sym.stop("North");

                      });

                      //Edge binding end

                      1 person found this helpful
                      • 8. Re: Re: Jump between triggers?
                        Joey Zap Level 1

                        It seems to be going in the right direction.

                         

                        I will post my work here, so you can take a look and maybe understand the thing i want to do

                         

                        http://adobe.ly/Thu63i

                         

                        If there´s no way, i will do it in another way.