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

linking 2 html5 canvases

Contributor ,
Jan 15, 2018 Jan 15, 2018

I've been trying to convert an old flash interactive module into HTML5 canvas before the plug eventually gets pulled.

I have one of the 2 parts converted and it works fine. I tried pasting the frames of the other after converting it to HTML5 canvas into the timeline of the first one but it seems to be interfering with the functionality of the first one even though all the old actionscript is commented out. Is there a way to keep them separate then when the user is finished with the first part it would automatically load the 2nd canvas? I think this would be easier than trying to troubleshoot what's interfering with the first one. I'm not even getting a javascript error in the console in my browser, so it's hard to pinpoint what the problems are.

310
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

LEGEND , Jan 15, 2018 Jan 15, 2018

Then put the canvas document in an iframe.

Translate
LEGEND ,
Jan 15, 2018 Jan 15, 2018

Canvas documents are just web pages. So to "link" from one canvas document to another, just... load it.

window.location = "/canvas2.html";

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
Contributor ,
Jan 15, 2018 Jan 15, 2018

Thanks, but the problem with that solution is that there is other content on the page and I'm not yet sure if I can leave that page to another. I'd rather be able to replace the current canvas with the next one.

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
LEGEND ,
Jan 15, 2018 Jan 15, 2018

Then put the canvas document in an iframe.

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
Contributor ,
Jan 15, 2018 Jan 15, 2018
LATEST

thanks. i will give that a try.

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