Adobe Animate Canvas (HTML5) Show-hide object with one button.
I use a button (name = Knop) to show an object (name = Afbeelding).
You can see the script below:
this.Afbeelding.visible = false;
this.Knop.addEventListener("click", fl_MouseClickHandler.bind(this));
function fl_MouseClickHandler()
{
{
this.Afbeelding.visible = true;
}
}
How can I use the same button (Knop) to hide the object (Afbeelding) after showing it?
