Highlighted

All my buttons link to the same URL

New Here ,
Oct 19, 2019

Copy link to clipboard

Copied

using Animate (version 19.2.1) I have created several buttons using this action :

this.***.addEventListener("click", fl_ClickToGoToWebPage);
 
function fl_ClickToGoToWebPage() {
window.open("https://www.***********/", "_top");
}
it works well but all my buttons goes to the same url despite having edited the url and the button name eachtime.
all the buttons follow this action:
animateproblem.png
ps: I have also tried to put it online and it doesn't work in wordpress either
 
Does anyone know this problem ? thanks in advance for the help 🙂
TOPICS
ActionScript, Code, Error, How to, Other

Views

79

Likes

Translate

Translate

Report

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

All my buttons link to the same URL

New Here ,
Oct 19, 2019

Copy link to clipboard

Copied

using Animate (version 19.2.1) I have created several buttons using this action :

this.***.addEventListener("click", fl_ClickToGoToWebPage);
 
function fl_ClickToGoToWebPage() {
window.open("https://www.***********/", "_top");
}
it works well but all my buttons goes to the same url despite having edited the url and the button name eachtime.
all the buttons follow this action:
animateproblem.png
ps: I have also tried to put it online and it doesn't work in wordpress either
 
Does anyone know this problem ? thanks in advance for the help 🙂
TOPICS
ActionScript, Code, Error, How to, Other

Views

80

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Oct 19, 2019 0
Adobe Community Professional ,
Oct 19, 2019

Copy link to clipboard

Copied

if you use the snippets, you need different button listeners calling different functions, if you want to use different urls.  eg.

 

this.button_1.addEventListener("click",gotoURL_1.bind(this));

this.button_2.addEventListener("click",gotoURL_2.bind(this));

 

function gotoURL_1(){

window.open("http://www.adobe.com");

}

function gotoURL_2(){
window.open("http://www.kglad.com");
}

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 19, 2019 0
New Here ,
Oct 19, 2019

Copy link to clipboard

Copied

thank you very much !

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 19, 2019 0
kglad LATEST
Adobe Community Professional ,
Oct 19, 2019

Copy link to clipboard

Copied

you're welcome.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 19, 2019 0