Skip to main content
Inspiring
July 15, 2020
Question

Click outside the button

  • July 15, 2020
  • 1 reply
  • 223 views

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!

    This topic has been closed for replies.

    1 reply

    avid_body16B8
    Legend
    July 15, 2020

    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.