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

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

New Here ,
Jun 09, 2019 Jun 09, 2019

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.

890
Translate
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

Community Expert , Jun 10, 2019 Jun 10, 2019

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

Translate
Community Expert ,
Jun 10, 2019 Jun 10, 2019
LATEST

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

Translate
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