5 Replies Latest reply on Jun 1, 2007 4:49 PM by robert113

    Controling outside movie clips from inside a different one

    robert113
      hello, I wrote a message earlier and could not get my code to work. I am trying to control a movie clip named "mensroomMovie" that is on the main time line of scene 1 when a button is pushed inside of a movie clip named "womensroomMovie" it looks something like this:

      this.stop();

      function gotoFrame(event:MouseEvent):void
      {

      this.gotoAndStop(10);
      this.parent.getChildByName("womensroomMovie").gotoAndStop(10);


      };

      enterButton.addEventListener(MouseEvent.CLICK,gotoFrame);


      the second line inside the function does not work and the code works fine without that second line. Can anyone suggest anything. Thanks a lot