Copy link to clipboard
Copied
Hi everyone I know absolutely nothing about adobe animate CC but iv been assigned a task to create a link from a button on a video, I dont speak computer so please just include screenshots to show me what I need to do.
I am using Adobe Animate CC 2018
Kind regard, Angus
1 Correct answer
Hi.
Please put this code in a frame of the timeline where your button is located.
JavaScript code:
function openWebPage()
{
window.open("http://www.adobe.com", "_blank");
}
this.linkButton.addEventListener("click", openWebPage);
FLA download:
animate_cc_html5_open_webpage.zip - Google Drive​
Don't forget to have a look at the Snippets panel for common interactivities.
Regards,
JC
Copy link to clipboard
Copied
Hi.
Please put this code in a frame of the timeline where your button is located.
JavaScript code:
function openWebPage()
{
window.open("http://www.adobe.com", "_blank");
}
this.linkButton.addEventListener("click", openWebPage);
FLA download:
animate_cc_html5_open_webpage.zip - Google Drive​
Don't forget to have a look at the Snippets panel for common interactivities.
Regards,
JC
Copy link to clipboard
Copied
João César, I see that both your answer and the Animate Wizard give me options for opening the link in a new browser window.
Is there JavaScript code to follow the link in the current browser window?
Thank you for your help in advance.
Copy link to clipboard
Copied
instead of _blank, use _self

