Adobe Animate Javascript TypeError mystery - can't solve
<p>I'm developing a simple application in Animate running in Canvas mode. It has a number of movie clip buttons on the stage with instance names 'p1', 'p2',....up to 'p19'. Clicking a button will cause another movie clip 'partOverlay' to be visible and go to frame on its timeline.</p>

<p>Everything works fine when only p1 through p13 are coded as shown below.  But p14 gives a TypeError: this.p14 is undefined. So do the other instances after p13.  I triple checked the names and syntax and everything looks OK.  When I copy the p14 button and code to a new Animate document it works OK. </p>

<p>I've spent a few hours on this searching online and testing and am at my wits end. Any help is appreciated.  </p>

<p>sample code:</p>

<pre><code>this.p13.cursor = "pointer";
this.p13.addEventListener("click", GoToPartFrame2.bind(this, "p13"));

this.p14.cursor = "pointer";
this.p14.addEventListener("click", GoToPartFrame2.bind(this, "p14"));

function GoToPartFrame2(view)
{   
    this.partOverlay.gotoAndStop(view);
    this.partOverlay.visible=true;

}
</code></pre>