A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: scrollbar position problem

  1. #1

    scrollbar position problem

    hello i've got just a small problem while doing this:

    scrollBar.setScrollPosition(chatBox.maxscroll);

    the scroll bar come at the bottom and instantly go up 1 line...i tryed

    scrollBar.setScrollPosition(chatBox.maxscroll+1);

    same result..
    someone may help...?

    thx

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Where do you want it to be?

  3. #3

    scrollposition

    i want it to be at the bottom...but as i said, when pressed, the scroll arrive at the bottom, and come up one line..i want it to stay at the bottom

  4. #4
    Poof! Whaddya need? I'mFine's Avatar
    Join Date
    May 2001
    Posts
    345

    try this

    instead of trying to set the scroll position, let the componenet do it for you -- it gets its position from the text field, so you can simply do:

    Code:
    myTextField.scroll=myTextField.maxscroll;

    be aware that "maxscroll" doesn't follow the usual capitalization routine: all letters are lowercase

    p.s. hello again OldNewbie

    --Rissa
    True genius consists of the ability to work around one's shortcomings.

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