3 Replies Latest reply on Jun 28, 2016 7:36 AM by Colin Holgate

    Stop link opening more than one time

    Daniel_9185 Level 1


      I have created a button inside a Animate canvas document.

      However when I click on it, it opens the homepage severeral times. Probably because it loads the script each time the timeline is playing.

      How can I prevent it from loading or avoid it to open more than once?


      The script im using is this:


      this.button.addEventListener("click", fl_ClickToGoToWebPage_8);

      function fl_ClickToGoToWebPage_8() {

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