2 Replies Latest reply on May 29, 2013 1:15 AM by Zaxist

    How to wait until animate() is finished and then execute a line of code?

    bdggr

      So, for example, I want to do a brief animation and then open a web page...

       

      // in a symbol instance's click event:

       

      sym.$(e.target).parent().animate({opacity: 1}, 1500);    // or play a symbol's timeline

       

      sym.getComposition().getStage().jumpToWebPage("http://en.wikipedia.org");

       

      How do I wait for the animation to complete before going to the web page?