title: Animate CC: Creating/accessing global function from external .js file
body: <p>I need to have a function that is accessed by Animate CC through connecting to an external file by: Global>Includes.</p>
  
  <p>Then I need to run the function that is sitting on the external file when I click on a movie clip.</p>
  
  <p>For example, the code on my movie clip is:</p>
  
  <pre><code>this.stop(); // stops the action on my movie clip
  
  myFunction(); // trying to access function from external javascipt file
  </code></pre>
  
  <p>The code in the external file is:</p>
  
  <pre><code>function myFunction() { // this code is not being called from my movie clip
  
  alert("working!");
  
  }
  </code></pre>
  
  <p>The console log states: "myFunction" is undefined.</p>
  
  <p>Thanks for the help,</p>
  
  <p>Kristen</p>