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 Level 1

      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




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