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

Multiple buttons on HTML5 Banners

New Here ,
Aug 03, 2023 Aug 03, 2023

Copy link to clipboard

Copied

Hi

I am having to pick up some banner designs in Animate, and please forgive my ignorance, but need to create 2 buttons going to 2 different URLs on the same banner. 

I can get two areas working as buttons but both go to the same URL or at least one overides the other. 
Can someone please help on how to stop this, or help explain for to create the two buttons?

Views

65

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
community guidelines
Community Expert ,
Aug 03, 2023 Aug 03, 2023

Copy link to clipboard

Copied

just use two different listener functions or an if-statement checking the event's currentTarget in one listener function.

 

if your don't understand the above, show the code you're using.

Votes

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
community guidelines
Community Expert ,
Aug 05, 2023 Aug 05, 2023

Copy link to clipboard

Copied

LATEST

Gonna need to see your code...

Votes

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
community guidelines