MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual page 154

Actionscript reference guide
Hide thumbs Also See for FLASH MX 2004 - ACTIONSCRIPT:
Table of Contents

Advertisement

To use the scroll property to create scrolling text:
Do one of the following:
1
Use the Text tool to drag a text field on the Stage. Assign the text field the instance name
textField
Use ActionScript to create a text field dynamically with the
MovieClip.createTextField()
textField
Create an Up button and a Down button, or select Window > Other Panels > Common
2
Libraries > Buttons and drag buttons to the Stage.
You will use these buttons to scroll the text up and down.
Select the Down button on the Stage.
3
In the Actions panel (Window > Development Panels > Actions), enter the following code to
4
scroll the text down in the text field:
on(press) {
textField.scroll += 1;
}
Select the Up button on the Stage.
5
In the Actions panel, enter the following code to scroll the text up:
6
on(press) {
textField.scroll += 1;
}
Close collapsed procedure
154
Chapter 8: Working with Text
in the Property inspector.
as a parameter of the method.
method. Assign the text field the instance name

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?

Table of Contents