HTML5 Canvas Cannot set property 'y' of undefined?

Engaged ,
Apr 28, 2021 Apr 28, 2021

Copy link to clipboard

Copied

The instance is very clearly defined: 

 

Defined.png

 

External JS file: 

 

APDHMIDM.png

 

This has never been an issue before, any idea what the problem could be now? 

 

Thanks. 

 

 

TOPICS
Error

Views

61

Likes

translate

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

correct answers 1 Correct Answer

Adobe Community Professional , Apr 28, 2021 Apr 28, 2021
First step of debugging, always: Confirm your assumptions.   You assume exportRoot.Mark exists. You assume exportRoot.APDHMIDM exists. Confirm this is true. Stick some console.log() statements in there that display them.

Likes

translate

Translate

Translate
Adobe Community Professional ,
Apr 28, 2021 Apr 28, 2021

Copy link to clipboard

Copied

First step of debugging, always: Confirm your assumptions.

 

You assume exportRoot.Mark exists. You assume exportRoot.APDHMIDM exists. Confirm this is true. Stick some console.log() statements in there that display them.

Likes

translate

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
Engaged ,
Apr 28, 2021 Apr 28, 2021

Copy link to clipboard

Copied

Thanks for that!

 

It turns out that exportRoot.Mark was mis-Instance named as b_Mark which was the problem.

 

Looking at the line in question I assumed the issue was APDHMIDM  since I would surely never make such a stupid mistake as not naming my button selection marker correctly... which is exactly what happened.

 

I appreciate your help, thanks man!

 

 

 

 

 

 

 

Likes

translate

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