31
2
CHAPTER 2
Working with Text and Fonts
This chapter describes how you can add static and dynamic text fields, and add input text
fields to your Macromedia Flash Lite applications.
This chapter contains the following topics:
About text in Flash Lite . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Using input text fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Font rendering methods in Flash Lite . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Flash Lite rendering quality and anti-aliased text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Embedding font outlines in SWF files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Text field example application (Flash Professional Only) . . . . . . . . . . . . . . . . . . . . . . 42
Creating scrolling text (Flash Professional Only). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
About text in Flash Lite
Flash Lite supports three types of text fields: static, dynamic, and input. A static text field has
content that doesn’t change during playback. For example, you might use static text fields to
display page titles or labels. For more information about creating a static text field, see
“Text
field example application (Flash Professional Only)” on page 42
.
Dynamic text fields let you control the content at runtime. You can associate an ActionScript
variable name with a dynamic text field that you can refer to in code. For example, if you are
making a calculator in Flash Lite, you would use a dynamic text field to show calculation
results. For more information about using dynamic text fields, see
“Assigning a variable name
to a text field” on page 32
.
An input text field is like a dynamic text field, except that a user can interact with an input
text field to open the device’s generic input dialog box to provide text input. For more
information about using input text fields, see
“Using input text fields” on page 34
.
Содержание FLASH 8-DEVELOPING FLASH LITE 2.X
Страница 1: ...Developing Flash Lite Applications...
Страница 30: ...30 Creating Interactivity and Navigation...
Страница 48: ...48 Working with Text and Fonts...
Страница 62: ...62 Optimizing content for performance and file size...
Страница 84: ...84 Testing Flash Lite Content Flash Professional Only...