7 Replies Latest reply on Jan 7, 2007 9:57 AM by kglad

    Array in an Array

    amilton22

      var aBilder:Array = new Array(m1l, m2l, m3l, m4l, m5l, m6l, m7l);
      var aKnappar:Array = new Array(k1l, k2l, k3l, k4l, k5l, k6l, k7l);

      for(var i:Number = 0; i < 7; i++){
      aBilder ._visible = false;
      }

      for(var i:Number = 0; i < 7; i++){
      aKnappar
      .onRelease = function():Void {
      aBilder ._visible = true;
      }
      }
      }
      Howcome this doesn't work? I'm trying simply to make 7 buttons that each has the function to visible a corrensponding mc in the other array. What is the basic error I'm doing? Can't understand why it isn't working.