Skip to main content
Participant
October 24, 2017
Answered

Can a button in an Animate CC window talk to the webpage it's in?

  • October 24, 2017
  • 1 reply
  • 134 views

I have something I've made in HTML5 that's going to be part of a webpage. I'd like it be able to send a message to the webpage that it's in (for instance, changing a block of text that's below the HTML5 object). Is this possible?

    This topic has been closed for replies.
    Correct answer Colin Holgate

    Yes, any JavaScript in the page should be available to call. Something like this in the page:

    function doAlert(message){

       alert(message);

    }

    could be triggered from anywhere in your Animate FLA by doing:

    window.doAlert("hello world");

    1 reply

    Colin Holgate
    Colin HolgateCorrect answer
    Inspiring
    October 24, 2017

    Yes, any JavaScript in the page should be available to call. Something like this in the page:

    function doAlert(message){

       alert(message);

    }

    could be triggered from anywhere in your Animate FLA by doing:

    window.doAlert("hello world");