Highlighted

Click outside the button

Explorer ,
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

27

Likes

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

Click outside the button

Explorer ,
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

28

Likes

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
Jul 15, 2020 0
Adobe Community Professional ,
Jul 15, 2020

Copy link to clipboard

Copied

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.

Likes

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
Reply
Loading...
Jul 15, 2020 0