5 Replies Latest reply on Jun 1, 2007 1:22 PM by kglad

    Controlling outside Movie Clips from inside other ones

    robert113
      Hello,

      I am having a lot of trouble doing something really simple. I am inside a Movie Clip with instance name mensroomMovie and with a button named enterButton. When the button is pressed I want both movie clips "mensroomMovie" and "womensroomMovie" to go to and stop on frame 10. Can someone tell me what is wrong in my following script:

      this.stop();

      function gotoFrame(event:MouseEvent):void
      {

      this.gotoAndStop(10);
      this._parent.womensroomMovie.gotoAndStop(10);


      };

      enterButton.addEventListener(MouseEvent.CLICK,gotoFrame);

      The second command or second sentence inside the function is not working properly. I also tried "this.parent.womensroomMovie.gotoAndStop(10);" and it didn't work). I appreciate any suggestions.