title: AS3: Call function from one class to another
body: <p>So i have two Class's <strong>Class A</strong> and <strong>Class B</strong>.</p>
  
  <p>I have a function that i wish to use on <strong>Class A</strong> but my flash fla file is linked to <strong>Class B</strong></p>
  
  <p>So I have done the following:</p>
  
  <p><em>Class A - the function</em></p>
  
  <pre><code>    public function Fb_Checks()
      {
          // constructor code
          load_top_bar();
      }
  </code></pre>
  
  <p><em>Class B - import</em></p>
  
  <pre><code>import ClassA;
  </code></pre>
  
  <p>then if i try to call the function in Class A from Class B:</p>
  
  <pre><code>Fb_Checks();
  </code></pre>
  
  <p>I get the following error:</p>
  
  <blockquote>
    <p>Call to a possibly undefined method Fb_Checks.</p>
  </blockquote>
  
  <p>Is there something more i should be doing to get this to work?</p>