Skip to main content
Participant
Nov 6, 2025 4:37 AM UTC
Question

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

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
Nov 6, 2025 10:08 AM UTC

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

Translate
MBRANDTAuthor
Participant
Nov 6, 2025 5:27 AM UTC

Sorry, Adobe Animate 2024.

Translate