Highlighted

Animate CC. html5 random popup

New Here ,
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?...

Adobe Community Professional
Correct answer by kglad | Adobe Community Professional

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

}

Views

90

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

Animate CC. html5 random popup

New Here ,
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?...

Adobe Community Professional
Correct answer by kglad | Adobe Community Professional

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

}

Views

91

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
Jun 17, 2020 0
Adobe Community Professional ,
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
Reply
Loading...
Jun 17, 2020 1
New Here ,
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
Reply
Loading...
Jun 17, 2020 0
kglad LATEST
Adobe Community Professional ,
Jun 18, 2020

Copy link to clipboard

Copied

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
Reply
Loading...
Jun 18, 2020 0