Copy link to clipboard
Copied
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?
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");
Copy link to clipboard
Copied
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");
Find more inspiration, events, and resources on the new Adobe Community
Explore Now