0 Replies Latest reply on Feb 19, 2007 11:42 PM by routhu

    Mouse Movement

    routhu
      Hi all,

      I am using this code for vertical scrolling gallery. How to add the X and Y Positions For Mouse up and Down for the Below code.

      if (_global.chk == undefined) {
      _global.chk = 1;
      }

      mask_y = getProperty("_root.main.verti.mask", _y);
      mask_h = getProperty("_root.main.verti.mask", _height);
      roller_y = getProperty("_root.main.verti.roller", _y);
      roller_h = getProperty("_root.main.verti.roller", _height);

      if (_global.chk == 1) {
      if ((roller_y+roller_h)>(mask_y+mask_h)) {
      setProperty("_root.main.verti.roller", _y, getProperty("_root.main.verti.roller", _y)-3);
      } else {
      _global.chk = 2;
      }

      } else if(_global.chk == 2) {
      if (roller_y<=mask_h) {
      setProperty("_root.main.verti.roller", _y, getProperty("_root.main.verti.roller", _y)+3);
      } else {
      _global.chk = 1;
      }
      }

      Thanks
      krishna