Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: Scrollbars on text fields
From: Colin Moock
Date: Wed, 7 Jul 1999 04:28:06 +0100

flasheratshocker [dot] com,Internet writes:
>I have this working fine in Flash 4, but have a slight problem. If the text
>that is input from the file is larger than the size of the text field within
>the movie, there is only one way of viewing the later lines. That is to
>select the text and scroll down with the arrow keys.

you can also set the currently displayed portion of your text field with the
actionscript properties .scroll and .maxscroll.

.scroll is the topmost displayed line in the viewable region of a text-field
variable. may be set with set variable, eg. set variable: "var1.scroll" = "3"

.maxscroll returns the number of the lowest line that may be displayed as the
top line in the viewable region of a text-field variable. retrievable by
simply stating the variable name and appending .maxscroll, as in
var1.maxscroll

by combining these properties with actionscript, you could pretty easily make
a button that scrolled a text region up or down. more info on page 201-202 of
the flash 4 manual.

colin

--
-

------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manageratshocker [dot] com. Problems to: owneratshocker [dot] com
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-manageratshocker [dot] com


Replies
  FLASH: Scrollbars on text fields, Brian McHarg

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]