JavaScript question Show and Hide

I am using Adobe Animate here and adding JavaScript
I am stuck here. What I have is a interface Called Oil Facts which is landscape view. In the top left corner I have a clip saved as a movie which shows a cutaway of a engine running. I don’t want the engine to be visible until the user clicks a button called engineRun. The movie of the engine running is called engine. The problem is when the engineRun button is clicked the engine appears and is animated but for a few seconds. I want the engine to stay visible and animated after the user clicks the button.
Any ideas what could be done here please. I am using Code snippets

this.engine.visible = false;
this.engineRun.addEventListener(“click”, fl_ClickToShow_4.bind(this));

function fl_ClickToShow_4()
this.engine.visible = true;

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.