Unhandled Status Event (facebook application)
- by Fahim Akhter
Hi, I'm getting the following error looked around couldn't find a
resultion to it. I'm working on Facebook btw with flash.
Warning: AllowScriptAccess='never' found in HTML.  This setting is ineffective and deprecated.  See http://www.adobe.com/go/allowscriptaccess for details.
One of your LocalConnection variables was able to connect
say: calling callFBJS a329775198094_sendShoeNumber args ["test"]
say: sending to _swf416624 method: asMethod args ["10"]
Error #2044: Unhandled StatusEvent:. level=error, code=
This is the code I am using:
 var connection:LocalConnection = new LocalConnection();
 var connectionName:String =
 LoaderInfo(this.root.loaderInfo).parameters.fb_local_connection;
 // Used to get information from javascript
 connection.allowDomain("*");
 connection.client = {
         asMethod: function(paramOne:Number)
         {
               trace("HAVE RECIEVED SOMETHING : "+paramOne);
         }
   };
  // To call the javascript
 function callFBJS(methodName:String, parameters:Array):void {
      if (connectionNameOne) {
             connectionOne.send(connectionNameOne, "callFBJS", methodName,parameters);
      }
 }
 callFBJS("sendShoeNumber", ["test"]);
 connection.addEventListener(StatusEvent.STATUS, testStatus);
  // Listener for status event
  function testStatus(event:StatusEvent):void {
              switch (event.level) {
                  case "status":
                    trace("One of your LocalConnection variables was able to connect");
                   break;
                  case "error":
                     trace("One of your LocalConnection variables FAILED to connect");
                   break;
              }
    }
Have been stuck on this for a while now.