2 Replies Latest reply on Dec 11, 2007 9:02 AM by

    Local Connection Problem

      Hello guys, I'm having a problem with my swf files communicating with each other.

      I am using Local Connection to coax them. The problem I'm having is that I have a main.swf which uses a MovieClipLoader to load swf files within itself. The main.swf actually acts as kind of a “holder” with a menubar above it.

      I want the user to be able to make any clicks on the menubar effect whatever happens in the current swf that is loaded. Thus, I had used Local Connection on one of the buttons in the main.swf:

      on (release) {
      section = "home";
      talkingLC = new LocalConnection();
      talkingLC.send("simple_lc", "comeBack", section);
      }

      -

      And at the top of the about.swf (which is being held) right now, I have this:

      listeningLC = new LocalConnection();
      listeningLC.comeBack = function(section) {
      if (section == "home") {
      trace("testing");
      this._parent._parent.dcMovie.gotoAndPlay(71);
      this._parent._parent.catMovie.gotoAndPlay(282);
      this._parent._parent.coolerMovie.gotoAndPlay(52);
      this._parent._parent.csMovie.gotoAndPlay(52);
      this._parent._parent.copter.gotoAndPlay(156);
      }
      };
      listeningLC.connect("simple_lc");
      stop();

      -

      So far the tracing test shows nothing and of course, nothing is playing in this file.

      I'm not exactly sure what's going on, but would appreciate it if anyone can offer some help with this.