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

Click outside the button

Explorer ,
Jul 15, 2020 Jul 15, 2020

Hello, guys!

I would like to know is there any way to detect click outside an object in Animate CC?

There is no problem to use it inside HTML DOM, I understand how to do that with parent node, but in CANVAS - no ideas (except lower layer with 1% transparency).

 

So, any ideas how to use JS for solving the problem:

1. Window is open.

2. Outside click closes the Window.

 

Thank you!

217
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 ,
Jul 15, 2020 Jul 15, 2020
LATEST

In your html page, the id for the animate composition is "animation_container". Use that.

Just because it is canvas does not make a difference I think.

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