4 Replies Latest reply on Jun 23, 2015 9:09 AM by resdesign

    Need to call a button click from the timeline

    Allison@HavasLynx Level 1

      Hi,

      I am using Edge Animate 2014.1.1

      I have a fairly complicated interface with lots of buttons. I need the buttons to perform certain actions when clicked but also need them to 'fire' (as if they had been clicked) when certain points are reached in the timeline.

      I have tried to keep as much of my code as possible in compositionReady and I have used the .bind function to apply the button actions:

       

      sym.getSymbol("mySymbol").$("mybtn").bind("click", function(){ 

             if (thisisthecase) {

                  do some stuff

             } else {

                  do other stuff

             }

      });

       

      Can anyone tell me how to put something on the timeline at a certain point in the animation that activates the button as if it had been clicked by the user?

      Many thanks