3 Replies Latest reply on Mar 5, 2010 6:35 AM by kglad

    LocalConnection not working with Firefox Browser

    bizzzel Level 1

      Hello-

       

      I am setting up a LocalConnection and found that it works fine in Safari and Opera but not in Firefox browser? Is this a security setting or is there something I'm missing in the code??? I attached the basic structure below:

       

      Receiving .swf:

       

      stop ();

      import flash.net.LocalConnection;

      var receiverLC:LocalConnection = new LocalConnection()
      receiverLC.connect("_myConnection");
      receiverLC.client = this;

      function playMC():void {
        gotoAndPlay("frame2");
      }

       

      Sending .swf:


      import flash.net.LocalConnection;
      import flash.events.MouseEvent;

       

      var receiverLC:LocalConnection = new LocalConnection();
      myButton_btn.addEventListener(MouseEvent.MOUSE_DOWN, sendData);

       

      function sendData(e:MouseEvent):void {
        receiverLC.send("_myConnection", "playMC");
      }