Scroll Bar Component
One of the default sets of components that ships with Flash MX is the Flash UI Components. Open the Components panel because you will want to look for the ScrollBar component in this set.
Drag the ScrollBar Component away from the Components panel and onto the Stage. Drag the ScrollBar over the Statement Text Field. You will notice that the Scroll Bar snaps into position on the right side of the text field. Save and Export the Flash Movie.
Go to your Web browser and view the new movie on your Web page, as shown in Figure 8. You will see that the scroll bars now automatically sizes to reflect the length of the content loaded into the Text Field. Pretty cool, huh?
Figure 8 The ScrollBar component is added to the Dynamic Text Field.