5 Replies Latest reply on Nov 15, 2006 8:44 AM by exPluda?

    How do I define the greatest _x position based on a loop, assuming I know the last element of the loop?

    exPluda? Level 1
      Hello,

      This may be complicated,

      I've a loop that creates emptyMovieClips
      then I use one function to onRollOver _xscale them += 10

      Now I want to move another movieClip based on the greatest _x position of my previously _xscaled elements, how do I do that?

      example

      for (var i = 0; i<my_array.length; i++) {
      _root.menu_.createEmptyMovieClip("btn"+i, i+1);
      }
      //
      _root.menu_["btn"+i].onRollOver = function() {
      this._xscale += 10;
      //
      MY_DRAGER._x = HIGHT._x;
      }

      Can this be done?

      Thanks,