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

HTML5 Canvas: adding "Go to Web Page" code snippet makes browser display nothing when testing

New Here ,
Jun 01, 2023 Jun 01, 2023

Copy link to clipboard

Copied

Hello! I'm working on an animated, interactive infographic in an HTML5 canvas document. I have a series of buttons that I intend to make open and close a corresponding series of infoboxes. This I've figured out how to do already; they work fine. What I'm hoping to do now is make certain parts of the text within these infoboxes link to web pages. The idea is simple: click a button, infobox above button appears, click text within infobox, you're taken to website. When I apply "Click to Go to Web Page" from the "Code Snippets" panel to the specific piece of text I want to make into a link, the browser displays nothing when I execute "Control > Test". I thought there was something I did the application didn't like, something to do with how I have things nested, etc. However, it seems the problem is way more simple than that. Before adding the Go to Web Page code snippet, the test works fine. I try adding a simple shape in Scene 1, at the top of the hierarchy, and apply the Go to Web Page code snippet, and, again, the browser displays nothing. Here's something weird: when I open the file, the test works fine, as I've not added any code snippet. I add the code snippet, run the test, blank browser. Now, when I undo back to before I've done anything, like it was when I opened the file, it does the blank browser thing again. That's baffling. Please help me. Also, I should mention, when I try to test on one of my computers, I get this message in the otherwise empty browser window: Error 404: Not Found File not found. Testing works fine on my desktop computer, however. Thanks! (Okay, apparently, I can't attach the Animate document to this message, even though it says that .fla files are supported, so what's up with that, btw? I'm about to lose my mind here.)

Views

161

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
Community Expert ,
Jun 01, 2023 Jun 01, 2023

Copy link to clipboard

Copied

what code are you using?

Votes

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 01, 2023 Jun 01, 2023

Copy link to clipboard

Copied

11.JPG12.JPG

Votes

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
Community Expert ,
Jun 01, 2023 Jun 01, 2023

Copy link to clipboard

Copied

that's as3 code. use the correct snippet group.

Votes

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 13, 2023 Jun 13, 2023

Copy link to clipboard

Copied

Okay, so what snippet group should I use, and how do I use it?

Votes

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
Community Expert ,
Jun 13, 2023 Jun 13, 2023

Copy link to clipboard

Copied

html5 for html5 projects.

Votes

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 13, 2023 Jun 13, 2023

Copy link to clipboard

Copied

I figured it out! Thanks! Works great!

Votes

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
Community Expert ,
Jun 14, 2023 Jun 14, 2023

Copy link to clipboard

Copied

LATEST

you're welcome.

Votes

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