A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: 3day for 1 problem with scroll bar:@:@

  1. #1
    Junior Member
    Join Date
    Jun 2007
    Posts
    14

    3day for 1 problem with scroll bar:@:@

    Hello,

    I can't figure out whats wrong with my scroll bar :@.

    www.zulubravo.org/guestbook.html

    here is the script for up button
    on (press, keyPress "<Up>") {
    GuestBook.scroll--;
    if (myscroll3._y>myscroll3.top) {
    myscroll3._y = myscroll3._y-((400-myscro113._height)/20);
    }
    }
    here is the script in the drag bar
    onClipEvent (load) {
    _height = 124;
    top = _y;
    left = _x;
    right = _x;
    bottom = _y+(307-_height);
    }
    onClipEvent (enterFrame) {
    if (dragging == true) {
    _root.GuestBook.scroll = 1+int((_y-top)*200/(900-_height));
    }
    }
    here is the script for the down button
    on (press, keyPress "<Down>") {
    GuestBook.scroll++;
    if (myscroll3._y<(305-myscroll3._height+myscroll3.top)) {
    myscroll3._y = myscroll3._y+((400-myscroll3._height)/20);
    }
    }
    Text window:

    Wide:380.0 X:302.3

    Hight:332.9 Y:80.7


    Please help

    Cheers Desmond

  2. #2
    Senior Member Pazil's Avatar
    Join Date
    Sep 2006
    Location
    Ontario, Canada
    Posts
    913
    OK...there a few variables that I don't understand where you're getting them from. Like,

    GuestBook.scroll
    dragging

    It would be a lot better if you could post the workfile, but unless you explain more, and give me more codes for example the code for the GuestBook, then I can't exactly help...
    WIP-ZOMBIES

    I love vegetarians! More meat for the rest of us!

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center