Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

New Here ,
Oct 24, 2017 Oct 24, 2017

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?

121
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Oct 24, 2017 Oct 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");

Translate
LEGEND ,
Oct 24, 2017 Oct 24, 2017
LATEST

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");

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines