Skip to main content
Participant
November 6, 2025
Question

Button to toggle visibility of an instance in Animate 2025 HTML5 wizard

  • November 6, 2025
  • 2 replies
  • 63 views

How do I code one button to toggle visibility of an instance in Animate 2025 HTML5 wizard

2 replies

JoãoCésar17023019
Community Expert
Community Expert
November 6, 2025

Hi.

 

Assuming your button and the target instance live in the same parent:

var _this = this;

_this.yourButton.on("click", function()
{
    _this.yourInstance.visible = !_this.yourInstance.visible;
});


Regards,
JC

MBRANDTAuthor
Participant
November 6, 2025

Sorry, Adobe Animate 2024.