32
Working with Text and Fonts
About font rendering methods in Flash Lite
To render text on a device’s display, Flash Lite can either use fonts that are available on the
device or use font data that is embedded in the SWF file. Device fonts have the advantage of
smaller SWF file sizes but give less control over the font display. When you embed font data
in the SWF file, you have more control over the font display, but it increases the file size.
For embedded font data, Flash Lite supports both anti-aliased and aliased (bitmap) text,
which makes text more readable at small point sizes. You can also use pixel fonts from third-
party font designers to make small text readable. For more information, see
“Font rendering
methods in Flash Lite” on page 38
and
“Embedding font outlines in SWF files” on page 40
.
Text features in Flash Player not supported in Flash
Lite 1.x
Text fields in Flash Lite do not support the following features available in desktop versions of
Flash Player:
■
The enhanced font rendering technology available in Flash Player 8 and later.
■
HTML, CSS, or other rich text formatting features.
■
The TextField and TextFormat objects.
Assigning a variable name to a text field
You can associate dynamic and input text fields with an ActionScript variable name, which
lets you get or set the contents of the text using ActionScript.
To associate a variable name with a dynamic or input text field:
1.
Create a new document from the Flash Lite 1.1 Symbian Series 60 template and save it as
dynamic_text.fla.
For more information about using Flash Lite document templates, see “Using Flash Lite
document templates (Flash Professional Only)” in
Getting Started with Flash Lite
.
2.
Create a dynamic or input text field on the Stage, and select it.
Содержание 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...