Skip to main content
Participant
May 14, 2021
Answered

Problem with interactive buttons

  • May 14, 2021
  • 1 reply
  • 1118 views

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. 😃

 

    This topic has been closed for replies.
    Correct answer mboib

    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

    1 reply

    JoãoCésar17023019
    Community Expert
    Community Expert
    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

    MischäAuthor
    Participant
    May 14, 2021

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

    1)

     

    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)

    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)

     

    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

    mboibCorrect answer
    Participant
    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