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

Click outside the button

Explorer ,
Jul 15, 2020 Jul 15, 2020

Copy link to clipboard

Copied

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!

Views

117

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

Copy link to clipboard

Copied

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.

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