0 Replies Latest reply: Mar 18, 2007 4:18 PM by Dr.Delicious RSS

    Halo Scroll Actionscript

    Dr.Delicious Community Member
      Hello, I am having a small problem with the Halo scroll bar. I am using this code(below) to controll the scrolling. The scrollbar graphic is going beyond the track mc on the "up" press and not going to the end of the track on the "down" press. Any help would be greatly appreciated. Thank you

      on (keyPress "<Up>") {
      theText.scroll--;
      scrollAmt = (theText.scroll-1)/theText.maxscroll;
      scrollHeight = sb_mc.track_mc._height - sb_mc.thumb_mc._height;
      sb_mc.thumb_mc._y = int(scrollHeight*scrollAmt);
      }
      on (keyPress "<Down>") {
      theText.scroll++;
      scrollAmt = (theText.scroll-1)/theText.maxscroll;
      scrollHeight = sb_mc.track_mc._height - sb_mc.thumb_mc._height;
      sb_mc.thumb_mc._y = int(scrollHeight *scrollAmt);
      }