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

Problem with interactive buttons

Community Beginner ,
May 14, 2021 May 14, 2021

Hello!

 

I'm new in Adobe Animate and had a lot of trouble with interactivity and actions to make. Every tutorial i've been looking at in YouTube doesnt seem to work - i've tried it several times though.

I just want a button to click on my HTML5 Banner and it should lead to the landing page i want.
Every time i try this, i can not click the button or its flickering when i do a hover with my mouse.

The code i generate looks like this:

 

this.button_1.addEventListener("click", fl_ClickToGoToWebPage_4);

function fl_ClickToGoToWebPage_4() {
window.open("http://www.adobe.com", "_blank");
}

 

The instanzname of the button is button_1 and its not a MovieClip, i have converted it into a symbol as well.

 

I have to change the website - i know - but it doesnt lead on the adobe site as well. Doesnt matter which website i type in - i can not click the button.

Can somebody help me or has the same problem? Is the code maybe false and i have to change something in it? Please let me know if you need more information or something.

Thank you. 😃

 

1.0K
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

Community Beginner , May 14, 2021 May 14, 2021

Hi, your button only has content in the "On" state. Add the content from "On" in "Above", "Active" and "Pressed", then it will work. Regards, Maik

Translate
Community Expert ,
May 14, 2021 May 14, 2021

Hi.

 

It seems to be a problem with the hit area of your button.

 

Do you mind posting screenshots of your button's timeline and mainly of its Hit frame?

 

Also please open the browser console to check if you're not getting any errors.

 

Regards,

JC

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
Community Beginner ,
May 14, 2021 May 14, 2021

Hey, thank you for your answer. Okay, i post some Screenys! ^^

1)

Bildschirmfoto 2021-05-14 um 12.47.11.png

 

1) This is my normal timeline. I dont know why i have an extra Layer for the actions - because i always click on my button Layer and then choose the actions. But it keeps jumping to a new Layer. I can do nothing against it.

 

 

2)

Bildschirmfoto 2021-05-14 um 12.47.26.png

2) This is the Timeline for the button. Do i have to do change anything there? Because in the tutorial hes doing nothing with that timeline..

3)

Bildschirmfoto 2021-05-14 um 12.48.01.png

 

3) This is my code.

 

And one more question: Is it normal that i can use the view in the Browser only one time and after that it doesnt work and my program fails?


Thank you very much!

LG

Michi

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
Community Beginner ,
May 14, 2021 May 14, 2021

Hi, your button only has content in the "On" state. Add the content from "On" in "Above", "Active" and "Pressed", then it will work. Regards, Maik

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
Community Beginner ,
May 14, 2021 May 14, 2021
LATEST

Wow.....thank you. Yeah, now it works fine! 
I didnt know that i have to put content in the other frames. That helped me a lot.

Thaaaaank you very much!! =DD

 

Kind regards,

Michi

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
Community Beginner ,
May 14, 2021 May 14, 2021
Hi, maybe thos woll work:
 
/* Klicken, um zu Webseite zu gehen
Durch Klicken auf die angegebene Symbolinstanz wird die URL in einem neuen Browserfenster geladen.
 
Anweisungen:
1. Ersetzen Sie http://www.adobe.com durch die gewünschte URL-Adresse.
      Lassen Sie die Anführungszeichen ("") stehen.
*/
 
this.button_1.addEventListener("click", fl_ClickToGoToWebPage);
function fl_ClickToGoToWebPage() {
window.open("http://www.adobe.com", "_blank");
}
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