title: Getting error Type 1061: Call to a possibly undefined method addEventListener through a reference with static type
body: <p>I moved my code from my Application to a separate AS class file and now I'm getting the following errors:</p>
  
  <pre><code>1061: Call to a possibly undefined method addEventListener through a reference with static type Class.
  
  1180: Call to a possibly undefined method addEventListener.
  </code></pre>
  
  <p>.</p>
  
  <pre><code>package managers {
  
  
      import flash.events.Event;
      import flash.events.EventDispatcher;
  
      public class RemoteManager extends EventDispatcher {
  
  
          public function RemoteManager() {
  
          }
  
  
          public static function init(clearCache:Boolean = false):void {
  
              addEventListener(SETTINGS_CHANGE, settingChangeHandler);
              addEventListener(ITEMS_UPDATED, itemsUpdatedHandler);
          }
      }
  }
  </code></pre>