Results 1 to 4 of 4

Thread: Adjusting scroll bar by Claudio?

  1. #1

    Adjusting scroll bar by Claudio?

    Does anyone know how I can adjust the speed of Cladio's scroll bar so when the arrows are clicked the scroll runs faster? Attached is Claudio's original file if needed.
    _______________

    The speed variable has no effect on this?

    I tried adjusting the interval property of both the (up_btn and down_btn) to a lower number from "18" to "0" Like so...
    _________________

    up_btn.onPress = function() {
    myInterval = setInterval(moveDragger, 0,-1);
    };
    down_btn.onPress = function() {
    myInterval = setInterval(moveDragger, 0, 1);
    _________________

    This seemed to work when previewed in the player but once uploaded for some reason the scroll slowed down again... ?

    Maybe something to do with the frame rate? – movie is set up at 30fps.

    Also, the content being scrolled is dynamically loaded via XML... Would this have anything to do with the lag?

    Any help or direction with this would be great!
    Thanks in advance > j
    Attached Files Attached Files
    Last edited by yolkSac; July 23rd, 2006 at 09:01 AM.

  2. #2
    Code:
    up_btn.onPress = function() {
    myInterval = setInterval(moveDragger,18,-10);
    };
    down_btn.onPress = function() {
    myInterval = setInterval(moveDragger,18, 10);
    };
    Is that it?

  3. #3
    Quote Originally Posted by nathan99
    Code:
    up_btn.onPress = function() {
    myInterval = setInterval(moveDragger,18,-10);
    };
    down_btn.onPress = function() {
    myInterval = setInterval(moveDragger,18, 10);
    };
    Is that it?
    THANKS Nathan99!

    That did it! Worked great!
    Not sure why or how but i'm happy it's fixed, i'll try to figure out the logic behind it later.

    To adjust the dragger from scrolling off the bar change the "dragger function" to match.

    moveDragger = function (d) {
    if ((dragger._y>=y+bar._height-dragger._height && d == 10) || (dragger._y<=y && d == -10)) {
    clearInterval(myInterval);
    } else {
    dragger._y += d;
    dragger.scrollEase();
    updateAfterEvent();
    }
    };

    Thanks again bud, i really appreciate the help!
    Last edited by yolkSac; July 23rd, 2006 at 09:08 AM.

  4. #4
    I'm trying to use the same scroller and dynamicallyload XML into it, with no success so far.

    Can you please tell us how you did so?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012