1 Reply Latest reply on Jun 20, 2010 3:49 PM by Ned Murphy

    how can i hide a movie clip?

    rage361

      is it possible for me to hide a movie clip by the press of a button that is on a differant timeline?

       

      here is my code for button.

       

       

      stop();
      submit_btn.addEventListener(MouseEvent.CLICK, subClick);

      failed_txt.background = false;
      failed_txt.border = false;

      var myName:String;
      var myPass:String;

      function subClick(event:MouseEvent):void{
      myName=name_txt.text;
      myPass=pass_txt.text;
      if(myName == "gallery" && myPass == "password"){
        gotoAndStop("hidden");
      } else{
        failed_txt.text = "Please enter a valid password.";
        }}

       

       

      Many thanks.

      Michael Down