Is there a way to do a mouseup event on a button?
Using Adobe Animate 20.5, with HTML5 Canvas project.
If I add this code to the frame that contains my button:
this.btnUp.addEventListener("mousedown", function() {
console.log("mousedown!");
});
this.btnUp.addEventListener("mouseup", function() {
console.log("mouseup!");
});
this.btnUp.addEventListener("touchend", function() {
console.log("touchend!");
});
this.btnUp.addEventListener("click", function() {
console.log("click!");
});
The only events that trigger are mousedown, and click.
I need the button to do something on mousedown, and undo it on mouseup. Is there a way to do that?
