MACROMEDIA FLASH MX 2004-USING ACTIONSCRIPT IN FLASH Use Manual page 245

Using actionscript in flash
Hide thumbs Also See for FLASH MX 2004-USING ACTIONSCRIPT IN FLASH:
Table of Contents

Advertisement

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 and type
3.
Select the Up button on the Stage, and type
4.
Select Frame 1 on the Timeline, and, in the Actions panel (Window > Development Panels >
5.
Actions), enter the following code to scroll the text down in the text field:
down_btn.onPress = function() {
textField_txt.scroll += 1;
};
Following the ActionScript in step 5, enter the following code to scroll the text up:
6.
up_btn.onPress = function() {
textField_txt.scroll -= 1;
};
Any text that loads into the
buttons.
down_btn
up_btn
text field can be scrolled using the up and down
textField_txt
into the Instance Name text box.
into the Instance Name text box.
Creating scrolling text
245

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents