![]() ![]() ![]() | |
![]() | |
![]() | |
![]() |
There are several ways to create scrolling text in Flash. You can make dynamic and input text fields scrollable by selecting the Scrollable Mode option in the Text menu or the context menu, or by Shift-double-clicking the text block handle.
You can use the scroll
and maxscroll
properties of the TextField object to control vertical scrolling and the hscroll
and maxhscroll
properties to control horizontal scrolling in a text block. The scroll
and hscroll
properties specify the current vertical and horizontal scrolling positions, respectively; you can read and write these properties. The maxscroll
and maxhscroll
properties specify the maximum vertical and horizontal scrolling positions, respectively; you can only read these properties.
The TextArea component in Flash MX 2004 provides an easy way to create scrolling text fields with a minimum of scripting. For more information, see TextArea component.
textField
in the Property inspector.MovieClip.createTextField()
method. Assign the text field the instance name textField
as a parameter of the method.You will use these buttons to scroll the text up and down.
on(press) { textField.scroll += 1; }
on(press) { textField.scroll += 1; }
![]() | |
![]() | |
![]() | |
![]() ![]() ![]() |