5 Replies Latest reply on Sep 25, 2006 7:57 AM by exPluda?

    diference between holder._height and _root._height

    exPluda? Level 1
      Hello,

      I need to define the stpo scrool point for my holder movieclip, but i'm not getting any result, can someone please have a look?

      the code

      _root.mask.baixo.onPress = function() {
      trace(_root.holder._y);
      trace(_root.holder._height);
      if (_root.holder._y == 0) {
      trace("ok");
      } else {
      _root.holder._y += 52;
      }
      };
      _root.mask.cima.onPress = function() {
      trace(_root.holder._y);
      if (_root.holder._y == (_root.holder._height-this._y)) {
      trace("ok");
      } else {
      _root.holder._y -= 52;
      }
      };


      basically I get the holder._height and I need to calculate if the end of my holder is 15 pixel up my button, so I can stop scrool

      Thanks