0 Replies Latest reply on Dec 7, 2006 10:28 AM by MatMaar

    reference

    MatMaar
      Hi

      On a button I have this script
      on (release) {
      _root.setArray(this._name, 1)
      }

      General I have this functionscript
      function setArray(whichButton, whichPosition){
      whichPosition -= 1;
      if (_global["status_"+ whichButton] == "NOTactive") {
      myPresentationArray[whichPosition] = whichButton;
      whichButton.gotoAndStop("active");
      trace("active");
      }else{
      myPresentationArray[whichPosition] = "";
      whichButton.gotoAndStop("NOTactive");
      trace("NOTactive");
      }
      trace("myPresentationArray: " + myPresentationArray);
      }


      now the part that says.... "whichButton.gotoAndStop("active");" doens't work.
      It's like flash doens't recognize the reference to "whichButton".

      Oh, and the buttons are on the root of the movie.


      Hope somebody can explain this to me.

      tx