5 Replies Latest reply on May 21, 2008 6:03 AM by arnhemcs-QVZdUa

    gotoAndStop when visible

    arnhemcs-QVZdUa
      Hi I hope somebody can help me out.

      I have some movieclips on stage that are invisible until by hitting buttons they are made visible.
      When 3 of them (which visualy create a row) are being made visible I want to move to a next frame.
      This last code I made up is wrong.

      x1_mc._visible = false;
      x2_mc._visible = false;
      x3_mc._visible = false;

      x1_btn.onRelease = function () {x1_mc._visible = true};
      x2_btn.onRelease = function () {x2_mc._visible = true};
      x3_btn.onRelease = function () {x3_mc._visible = true};

      // up to this point the code works but the next is clearly wrong

      if (x1_mc._visible = true && x2_mc._visible = true) {gotoAndStop("winst")};

      How should I do this?

      Any help is will be appreciated.

      Jos