Highlighted

Animate HTML5 - Click to go to Web Page Doesn't Work

New Here ,
Jun 09, 2019

Copy link to clipboard

Copied

This has been driving me nuts for days. I'm not sure what I'm doing wrong, though I'm sure it'll be obvious when it gets here.

Context:

Created an HTML5 canvas, containing animations as well as a movieclip symbol.

Movieclip symbol contains a "scrollbar" of an image with two buttons to click through (prevButton and nextButton). The buttons are attached to actions that advance the clip one frame and stop. On each frame, the image moves to simulate scroll.

this.navigationLoop = false;

if (!this.hasStarted) 

     this.prevFrame = function(e) 

     { 

          if (this.navigationLoop && this.currentFrame == 0) 

              this.gotoAndStop(this.timeline.duration - 1); 

          else 

              this.gotoAndStop(this.currentFrame - 1); 

     }; 

 

     this.nextFrame = function(e) 

     { 

         if (!this.navigationLoop && this.currentFrame == this.timeline.duration - 1) 

               return; 

 

         this.gotoAndStop(this.currentFrame + 1); 

     }; 

 

     this.prevButton.on("click", this.prevFrame, this); 

     this.nextButton.on("click", this.nextFrame, this); 

     this.stop(); 

     this.hasStarted = true; 

There's a CTA (button_3) at the bottom of the image that I want to make clickable.

this.button_3.addEventListener("click", fl_ClickToGoToWebPage);

function fl_ClickToGoToWebPage() {

window.open("window.clickTag", "_blank");

}

But I can't seem to get that to actually *link* anywhere. A pointer hand won't even appear over the area.

I've tested buttons that link out on the main timeline, and in a few otherwise empty docs, and can't get those to export either. What is going on here? Is there a simpler way to just put this in myself? I'm a graphic designer, and have some  HTML5 and Animate banner experience, but I'm not sure how to resolve this.

Adobe Community Professional
Correct answer by kglad | Adobe Community Professional

"window.clickTag" is the problem.  test by replacing that with "http://www.adobe.com"

TOPICS
Discussions

Views

198

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 HTML5 - Click to go to Web Page Doesn't Work

New Here ,
Jun 09, 2019

Copy link to clipboard

Copied

This has been driving me nuts for days. I'm not sure what I'm doing wrong, though I'm sure it'll be obvious when it gets here.

Context:

Created an HTML5 canvas, containing animations as well as a movieclip symbol.

Movieclip symbol contains a "scrollbar" of an image with two buttons to click through (prevButton and nextButton). The buttons are attached to actions that advance the clip one frame and stop. On each frame, the image moves to simulate scroll.

this.navigationLoop = false;

if (!this.hasStarted) 

     this.prevFrame = function(e) 

     { 

          if (this.navigationLoop && this.currentFrame == 0) 

              this.gotoAndStop(this.timeline.duration - 1); 

          else 

              this.gotoAndStop(this.currentFrame - 1); 

     }; 

 

     this.nextFrame = function(e) 

     { 

         if (!this.navigationLoop && this.currentFrame == this.timeline.duration - 1) 

               return; 

 

         this.gotoAndStop(this.currentFrame + 1); 

     }; 

 

     this.prevButton.on("click", this.prevFrame, this); 

     this.nextButton.on("click", this.nextFrame, this); 

     this.stop(); 

     this.hasStarted = true; 

There's a CTA (button_3) at the bottom of the image that I want to make clickable.

this.button_3.addEventListener("click", fl_ClickToGoToWebPage);

function fl_ClickToGoToWebPage() {

window.open("window.clickTag", "_blank");

}

But I can't seem to get that to actually *link* anywhere. A pointer hand won't even appear over the area.

I've tested buttons that link out on the main timeline, and in a few otherwise empty docs, and can't get those to export either. What is going on here? Is there a simpler way to just put this in myself? I'm a graphic designer, and have some  HTML5 and Animate banner experience, but I'm not sure how to resolve this.

Adobe Community Professional
Correct answer by kglad | Adobe Community Professional

"window.clickTag" is the problem.  test by replacing that with "http://www.adobe.com"

TOPICS
Discussions

Views

199

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 09, 2019 0
Adobe Community Professional ,
Jun 10, 2019

Copy link to clipboard

Copied

"window.clickTag" is the problem.  test by replacing that with "http://www.adobe.com"

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 10, 2019 0