title: Adobe Animate problem with disappearing object
body: <p>I am working on a project using JavaScript using Adobe Animate. I at first tried entering the JavaScript by hand coding which did not work. Next I went to a code wizard in Adobe Animate with not much luck either.</p>
  <p>What I have is a interface Called Oil Facts which is landscape view (image below). 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.</p>
  <p>Any ideas what could be done here please. I am using Code snippets, also I created</p>
  <p>a label in the first frame of the movie clip named engine which I called motorGo but the animation again appears working for a few seconds then dissapears.</p>
  <p>I want the engine to continue running.</p>
  <p>----Here is my JavaScript code below---------------</p>
  <pre><code>this.engine.visible = false;
  
  this.engineRun.addEventListener(&quot;click&quot;, fl_ClickToShow_4.bind(this));
  
  function fl_ClickToShow_4()
  {
  this.engine.visible = true;
  this.gotoAndPlay(motorGo);
  }
  </code></pre>
  <hr />
  <p>Below is the project image which is created in Adobe Animate which uses JavaScript for its scripting language, Animate is basically Adobe Flash with a tuxedo,..rebranded.
  Both the engine and the oil can are animations I do not want to appear until the user clicks the button associated.
  <a href="https://i.stack.imgur.com/EHKbq.jpg" rel="nofollow noreferrer">This is what the project looks like</a></p>