Copy link to clipboard
Copied
Here's a Solution:
One of the best ways to break out of the frames is as follows:
1. You have to add the code...
<base target="_parent">
....to the HEAD of the page where you are getting the links stuck in frames. (If you don't know how to add content to the HEAD of the particular page where your movie is embedded in WordPress website, visit https://mrvirk.com/how-to-add-code-to-head-tag-in-wordpress.html)
2. Next set the code in your adobe animate project to match the example below
this.MYBUTTON_A.addEventListener("click", fl_ClickToGoToWebPage);
function fl_ClickToGoToWebPage() {
window.open("WWW.MYWEBSITE.COM/SOME DIRECTORY/YOUR LINK/","_parent");
}
That's it.
Here's a link for a further explanation if you are interested:
https://stackoverflow.com/questions/1037839/how-to-force-link-from-iframe-to-be-opened-in-the-parent...
Copy link to clipboard
Copied