Using JavaScript "pointerdown" for Button
When using JavaScript in Adobe Animate, why can I use this:
this.squareMe.addEventListener("click", alertMe.bind(this));
but not this:
this.squareMe.addEventListener("pointerdown", alertMe.bind(this));
I'm able to use this:
window.addEventListener("pointerdown", alertMe.bind(this));
but this means I can't attach the addEventListener to a particular button. I need to use "pointerdown," because I am having problems when it comes to devices that especially use both mouse and touch. Thanks.
- Ryan
