title: AS3 LocalConnection Errors
body: <p>Not sure where I'm going wrong, for now just trying this out locally. Thanks.</p>
  
  <p>sendingLC.swf does return, LocalConnection.send() succeeded</p>
  
  <p>This is the errors I get from Flash.
  Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095: flash.net.LocalConnection was unable to invoke callback myMethod. error=ReferenceError: Error #1069: Property myMethod not found on flash.net.LocalConnection and there is no default value.</p>
  
  <p>Code for sendingLC.swf:</p>
  
  <pre><code>import flash.net.LocalConnection
  
  var sendingLC:LocalConnection;
  sendingLC = new LocalConnection();
  sendingLC.allowDomain('*');
  Security.allowDomain("*");
  sendBtn.addEventListener(MouseEvent.CLICK, sendIt);
  
  function sendIt(eventObj:MouseEvent):void {
      sendingLC.send('myConnection', 'myMethod');
  }
  
  sendingLC.addEventListener(StatusEvent.STATUS, statusHandler);
  
  
  function statusHandler (event:StatusEvent):void
  {
      switch (event.level)
      {
          case "status" :
              textArea.text = ("LocalConnection.send() succeeded");
              break;
          case "error" :
              textArea.text = ("LocalConnection.send() failed");
              break;
      }
  }
  </code></pre>
  
  <p>Code for receivingLC.swf:</p>
  
  <pre><code>import flash.net.LocalConnection
  
  var receivingLC:LocalConnection;
  receivingLC = new LocalConnection();
  receivingLC.allowDomain('*');
  Security.allowDomain("*");
  receivingLC.connect('myConnection');
  
  function myMethod():void {trace('Hello World')}
  </code></pre>