Animate CC. html5 random popup

New Here ,
Jun 17, 2020 Jun 17, 2020

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

Views

124

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

correct answers 1 Correct Answer

Adobe Community Professional , Jun 17, 2020 Jun 17, 2020
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...) }

Likes

Translate

Translate
Adobe Community Professional ,
Jun 17, 2020 Jun 17, 2020

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

}

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
community guidelines
New Here ,
Jun 17, 2020 Jun 17, 2020

Copy link to clipboard

Copied

First thank you for responding. And second big thanks for your shared knowledge, was really stuck over here.

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
community guidelines
Adobe Community Professional ,
Jun 18, 2020 Jun 18, 2020

Copy link to clipboard

Copied

LATEST

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