Copy link to clipboard
Copied
Hi, Im creating html5 banners with Animate CC. For this case my created banner has few buttons with links to land.
The problem is when you press button after the first rotation (like on 2nd or 3rd loop) it opens link and 2, 3 or more popups (automatically blocked by browser) depends on how many loops you watched. Have no idea why it stacks these popups instead of openning just 1 single web link at any time?...
execute your listener once only. don't repeat that code when your timeline replays:
this.prevent_replay;
if(!this.prevent_replay){
this.prevent_replay=true;
yournonrepeatinglistenerobjects.addEventListener(etc...)
}
Copy link to clipboard
Copied
execute your listener once only. don't repeat that code when your timeline replays:
this.prevent_replay;
if(!this.prevent_replay){
this.prevent_replay=true;
yournonrepeatinglistenerobjects.addEventListener(etc...)
}
Copy link to clipboard
Copied
First thank you for responding. And second big thanks for your shared knowledge, was really stuck over here.
Copy link to clipboard
Copied
you're welcome.