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

multiple canvas animations with one JS file?

Participant ,
Aug 28, 2018 Aug 28, 2018

I have a project where I am creating charts for a website. My project is setup so that I can use one chart per area in my website. My fla file can generate any of the applicable charts. The generated canvas html will all be the same dimensions. Will it be possible to have three separate canvas areas of my web page and use only one JS file? I mean one file that can control all three areas where these canvas animations execute? Thanks

1.1K
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 ,
Aug 28, 2018 Aug 28, 2018

Out of the box, no. With some crazy amount of hacking and slashing at the generated code, probably yes.

But more importantly, why? How would that even work? What would be the point?

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
Participant ,
Aug 28, 2018 Aug 28, 2018

Let’s say I have a web page that is multiple areas that need charts? I want to run these animations, maybe at different times and different responsive setups. I could hide or show based on devices… many possibilities. I show the example but understand how id and classes work (it's just for demo)

Artboard 2-100.jpg

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
Participant ,
Aug 29, 2018 Aug 29, 2018

I am having no luck with this. I have found other posts that offer helpful suggestions and some that people are saying "the correct way" however these seem to be either outdated or workign with very simple code that ins not like Animate is generating to date. I am namespacing via plublish options, but I cannot get both animations on the screen. I have followed at least three examples I have seen.

http://pctechtv.com/extra/forum/adobe/180829twoAni/unify.zip

Thanks for any help.

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 ,
Aug 29, 2018 Aug 29, 2018
LATEST

Okay, so the question you posed in the thread title has nothing to do with your actual problem, which is putting multiple Animate animations on the same page.

Just put each animation in its own 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