Groups | Blog | Home
all groups > flash actionscript > august 2007 >

flash actionscript : Scroll text to bottom


jak9942
8/8/2007 8:14:10 PM
How would I go about starting the imported text at the bottom rather than
having to scroll to the bottom?

Normal:

----------------- window top
text 1
text 2
text 3
----------------- window bottom
text 4
text 5


Instead I would like:

text 1
text 2
----------------- window top
text 3
text 4
text 5
----------------- window bottom

Sorry if i explained it badly.
_name
8/8/2007 8:50:02 PM
the _y value of your dynamic text box is what marks the beginning of your text.
how about doing something like writing a function that, after you have imported
your text, does this:

yourTextBox._y = yourMask._y - yourTextBox._height + yourMask._height;


jak9942
8/13/2007 12:00:00 AM
Rob Dillon
8/13/2007 12:00:00 AM
You can set the scroll of the text field to the maxscroll value of the
text field. You have to wait until the text has downloaded and populated
the text field before you can change its scroll value.
--
Rob

___________
Rob Dillon
Adobe Community Expert
http://www.ddg-designs.com
AddThis Social Bookmark Button