0 Replies Latest reply on Apr 15, 2008 1:03 PM by patch_king

    three way scroll

    patch_king
      hi,
      i've been trying to make a 3 way
      scroller. 2 vertical mc and 1 horizontal.
      i've uploaded the layout of what i'm
      trying to make work here :
      http://www.containsmilk.com/flashforum.htm
      and this is as far as i have got so far...
      after a month of trying:
      http://www.containsmilk.com/flashforum1.htm
      ..i know, i'm totally pathetic.

      i'll be your friend for life if you can help with this.
      i really will.

      code so far:
      var scrollUpper:Number = 40.9;
      var scrollLower:Number = 468.1;

      var textLower:Number = 59.6;
      var textUpper:Number = -2716.4;

      var scrollRange:Number = scrollLower - scrollUpper;
      var textRange:Number = textLower - textUpper;

      function scroll() {
      var moved:Number = imagescroller_mc._y - scrollUpper;
      var pctMoved:Number = moved/scrollRange;
      var textMove:Number = pctMoved*textRange;
      image_mc._y = textLower - textMove;
      }

      imagescroller_mc.onPress = function() {
      this.startDrag(false,this._x,scrollUpper,this._x,scrollLower);
      this.onMouseMove = scroll;
      }

      imagescroller_mc.onRelease = scroller_mc.onReleaseOutside = function() {
      this.stopDrag() ;
      this.onMouseMove = null;
      }

      scroller_mc.onRelease = scroller_mc.onReleaseOutside = function() {
      this.stopDrag() ;
      this.onMouseMove = null;
      }