There are several ways to create scrolling text in Flash CS3 Professional:
Use the ActionScript 3.0 TextArea component included with Flash CS3 Professional. If the TextArea is set to editable, then as soon as enough lines are entered, the UIScrollbar component will automatically appear on the right side of the TextArea. Vertical scrolling can be enabled/disabled only by using the verticalScrollPolicy method of fl.controls.TextArea.
Make dynamic or input text fields scrollable by using menu commands or the text field handle (see Flash CS3 Professional Help).
- Add a ScrollBar component to a text field to make it scroll. This is useful in cases where the overhead of the TextArea component isn't needed
To create a scrolling text field in Flash CS3 Professional, do the following:
Drag the UIScrollbar component, dropping it to the left or right side of the text field instance. It should snap to the text field. UIScrollbar can also be created dynamically via ActionScript.
Note: At this point notice that selecting the scrollbar, then the Parameters tab of the Properties inspector will show you that the snapping automatically sets the scrollTargetName property to the name of the text field. In Flash Player this is how the scrollbar controls the text field.
Flash MX 2004 did not ship with a scroll bar component. The recommended solution for creating scrolling text in Flash MX 2004 is to use the TextArea component or to use ActionScript to scroll the content of a text field. The TextArea component is the preferred method because it includes scrollbars with an automatic show/hide feature.
To create a scrolling TextArea component, do the following: