1 Reply Latest reply on Dec 12, 2016 4:38 AM by jpbond13

    my button doesn't open the link i've created

    jpbond13 Level 1


      i create an animation js with Animate CC 2017, and i need a button to go to a website.

      I create a button, with www.mysite.com in text on it.

      I add a white square on it, for the click area... with alpha 0%

      I put the button named "bouton_site" on my main timeline


      I'm not sure where i need to create the action code ?

      On the first step of my main timeline ?

      or i need to create a symbol, using the first button symbol, with the action code in a separate layer, and put this new symbol on the main timeline ?


      The code i use is :


      this.bouton_site.addEventListener("click", fl_ClickToGoToWebPage);


      function fl_ClickToGoToWebPage() {

          window.open("http://www.mysite.com", "_blank");



      but when i test the animation, button aera works, but there is no blank page with the website...


      thanks for your help, i've found no example...