A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: scroll to end of text

  1. #1
    Junior Member
    Join Date
    May 2002
    Location
    London
    Posts
    24

    scroll to end of text

    i have a text box and can scroll using textfieldname.scroll++
    can you set it so it scrolls to the end with out a button press?

    thanks would be most happy
    my spellings not good forgive me

  2. #2
    Untitled-1.fla strille's Avatar
    Join Date
    Mar 2001
    Location
    Sweden
    Posts
    1,626
    You can type:

    textfieldname.scroll = textfieldname.maxscroll;

    This will scroll the text field to make the last line visible.

  3. #3
    Junior Member
    Join Date
    May 2002
    Location
    London
    Posts
    24

    text scroll to end

    Thank you for the fast responce that code works in a button
    I can't get it to work in the action scrip?

    I must be doing somthing wrong?

  4. #4
    Untitled-1.fla strille's Avatar
    Join Date
    Mar 2001
    Location
    Sweden
    Posts
    1,626
    You may have to wait 1 frame before using it. So, if the text field first appears on say frame 2, call this code on frame 3. I know I've sometimes had to do so in the past when using maxscroll.

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