MACROMEDIA FLASH 8-DEVELOPING FLASH LITE 2.X Develop Manual page 45

Developing flash lite 2.x applications
Hide thumbs Also See for FLASH 8-DEVELOPING FLASH LITE 2.X:
Table of Contents

Advertisement

5.
Select Use Device Fonts from the Font Rendering Method pop-up menu in the Property
inspector.
6.
Select Text > Scrollable to make the text field scrollable.
7.
Type story in the Instance Name text box in the Property inspector.
8.
Double-click inside the text field, and enter enough text so that one or more lines of text
extend below its lower edge.
9.
In the Timeline, select the first frame on Layer 1, and open the Actions panel (Window >
Actions).
10.
Enter the following code in the Actions panel:
var keyListener:Object = new Object();
keyListener.onKeyDown = function() {
var keyCode = Key.getCode();
if (keyCode == Key.DOWN) {
story.scroll++;
}
else if (keyCode == Key.UP) {
story.scroll--;
}
};
Key.addListener(keyListener);
11.
Select Control > Test Movie to test the application in the Flash Lite emulator.
Click the up and down navigation keys on the emulator (or the Up Arrow and Down
Arrow keys your computer's keyboard) to scroll the text up or down.
Creating scrolling text (Flash Professional only)
45

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-DEVELOPING FLASH LITE 2.X and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents