Adobe
Products
Acrobat
Creative Cloud
Creative Suite
Digital Marketing Suite
Digital Publishing Suite
Elements
Photoshop
Touch Apps
Student and Teacher Editions
More products
Solutions
Creative tools for business
Digital marketing
Digital media
Education
Financial services
Government
Web Experience Management
More solutions
Learning Help Downloads Company
Buy
Home use for personal and home office
Education for students, educators, and staff
Business for small and medium businesses
Licensing programs for businesses, schools, and government
Special offers
Search
 
Info Sign in
Welcome,
My cart
My orders My Adobe
My Adobe
My orders
My information
My preferences
My products and services
Sign out
Why sign in? Sign in to manage your account and access trial downloads, product extensions, community areas, and more.
Adobe
Products Sections Buy   Search  
Solutions Company
Help Learning
Sign in Sign out My orders My Adobe
Preorder Estimated Availability Date. Your credit card will not be charged until the product is shipped. Estimated availability date is subject to change. Preorder Estimated Availability Date. Your credit card will not be charged until the product is ready to download. Estimated availability date is subject to change.
Qty:
Purchase requires verification of academic eligibility
Subtotal
Review and Checkout
Adobe Developer Connection / Flash Developer Center /

Common mistakes working with fonts and text objects in Flash

by Tommi West

Tommi West
  • tommiland.com

Content

  • Forgetting to embed nonstandard fonts for text content
  • Choosing the wrong type of text field for the desired behavior
  • Using the anti-aliasing option: Anti-alias for animation
  • Disable the Selectable option for text fields
  • Avoid using images for text content
  • Be sure you don't need to edit text before breaking apart text fields
  • Where to go from here

Created

16 January 2012

Page tools

Share on Facebook
Share on Twitter
Share on LinkedIn
Bookmark
Print
best practice Flash Professional text

Requirements

Prerequisite knowledge

Previous experience working with Flash Professional is recommended. Refer to Avoiding common authoring mistakes to find links to other articles in this series.

User level

All

Required products

  • Flash Professional (Download trial)

This article can help you avoid common issues that may occur when adding text elements to your Adobe Flash Professional projects. As you develop your applications, create a mental checklist to ensure that you are choosing the right text field types and rendering options, and embedding the characters needed to display text well on the Stage.

Forgetting to embed nonstandard fonts for text content

In addition to using device fonts that come pre-installed in all computers, you can also use more unique fonts that are installed on your machine but are likely not to exist on the computers of users who view your Flash project.

Flash Professional CS5 (and later) automatically embeds any characters used by text fields on the Stage. However, if you are using Dynamic or Input text fields, the project may also need to include characters for the font that aren't specifically contained in instances on the Stage during authoring. If you do not embed the necessary characters and text elements are programmatically displayed or entered by the user, the characters may be missing and the application may appear broken.

Always err on the side of embedding too many, rather than not including, the necessary characters (including numbers and symbols) of a font, but remember that the process of embedding fonts increases the size of the published SWF file.

For more information, read Embedding fonts in the Adobe Developer Connection and Embed fonts for consistent text appearance in the Flash Professional online documentation.

Choosing the wrong type of text field for the desired behavior

Before setting the text field type in the Property inspector, always take a moment to consider the type of text field that is required in a particular situation. Choose TLF text if you need to display non-Western character sets or programmatically control the display of different languages for a multilanguage project; otherwise choose Classic text.

If you are simply displaying text on the Stage, you can choose Classic text and then use the Static text option (see Figure 1). If you plan on displaying the contents of the text field programmatically, choose Dynamic text. If you want the user to type into the field to enter text at runtime, select Input text. It confuses users if they discover that they can type in fields that are only designed to display text content. Flash requires extra system resources to display the Input and Dynamic text fields, so only choose these options (as well as enabling the Selectable setting) when needed.

Figure 1. Use the Property inspector to set the type of text field.
Figure 1. Use the Property inspector to set the type of text field.

Using the anti-aliasing option: Anti-alias for animation

Whenever possible, avoid choosing the Anti-alias for animation rendering option. This setting creates jagged text for the purpose of making the text easier to tween. In most cases, using the option Anti-alias for readability is best (see Figure 2).

Figure 2. Choose the rendering option Anti-alias for readability in the Property inspector.
Figure 2. Choose the rendering option Anti-alias for readability in the Property inspector.

If you have to animate text elements, consider breaking apart the text characters to make them behave like shapes. The text is no longer editable once it has been broken apart, but the shapes will animate smoothly and look crisper than animated text.

Disable the Selectable option for text fields

By default, the Selectable option is enabled for text fields. However, unless you need to allow users to select and copy text in the field, you can usually disable this setting. Selectable text requires more system resources than displaying static text content.

To disable the setting, select the desired text field. In the Property inspector, use the menu to change the setting from Selectable to Read Only (see Figure 3).

Figure 3. Use the menu in the Property inspector to set text fields to read only.
Figure 3. Use the menu in the Property inspector to set text fields to read only.

Avoid using images for text content

Whenever possible, use text fields to display text in Flash, rather than importing an image file to display the text. Image content, such as bitmap graphics and vector artwork, causes a project's file size to increase, whereas adding text fields and styling the text adds a very minimal size. Additionally, text fields in Flash are much easier to work with, because you can edit the text as needed without returning to an image-editing program to edit and re-export the image file. Text fields are flexible because you can change the font family, font size, font style, and font color as you are authoring the project. You can also switch the orientation of TLF text or Classic static text fields to vertical as well as horizontal.

Be sure you don't need to edit text before breaking apart text fields

Once a text field has been broken apart, it first separates into individual characters. Then, if you break it apart again, the individual characters become shapes. The text is no longer actual characters, and therefore it cannot be edited as you can edit a normal text field.

Take the time to ensure all spelling is correct before breaking apart text fields to animate or stylize the characters. Although it is possible to choose Edit > Undo repeatedly or delete the shapes of a text field that has been broken apart, it is time-consuming. It is optimal to triple-check the text entered into a text field to ensure that you don't have any typographical errors before breaking the text field apart.

Where to go from here

The most important aspect when displaying text content is to ensure that it is legible. Beyond that, it is a matter of editing your content to be succinct and clear. Finally, add character to your projects by choosing fonts and formatting styles that match the rest of the project's design.

Read the following article and sections of the Flash Professional online documentation to get more details about working with text:

  • Embedding fonts
  • Working with Classic text (Flash documentation)
  • Embed fonts for consistent text appearance (Flash documentation)

Refer to Avoiding common authoring mistakes to find links to other articles in this series.

Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License

More Like This

  • Tips for using Flash efficiently
  • Controlling the appearance of text elements with the Text Layout Framework
  • Preloading TLF runtime shared libraries in Flash Professional CS5.5
  • Working with Text Layout Framework objects and classes in Flash
  • Guide for Apple App Store submissions
  • Creating an accessible animated presentation in Flash
  • Creating ActionScript 3.0 components in Flash – Part 2: MenuBar component prototype
  • Exploring the new 3D features in Flash CS4 Professional
  • ActionScript 2.0 best practices
  • Code snippets for beginning ActionScript 3 programmers and designers

Flash User Forum

More
04/23/2012 Auto-Save and Auto-Recovery
04/23/2012 Open hyperlinks in new window/tab/pop-up ?
04/21/2012 PNG transparencies glitched
04/01/2010 Workaround for JSFL shape selection bug?

Flash Cookbooks

More
02/13/2012 Randomize an array
02/11/2012 How to create a Facebook fan page with Flash
02/08/2012 Digital Clock
01/18/2012 Recording webcam video & audio in a flv file on local drive

Products

  • Acrobat
  • Creative Cloud
  • Creative Suite
  • Digital Marketing Suite
  • Digital Publishing Suite
  • Elements
  • Mobile Apps
  • Photoshop
  • Touch Apps
  • Student and Teacher Editions

Solutions

  • Digital marketing
  • Digital media
  • Web Experience Management

Industries

  • Education
  • Financial services
  • Government

Help

  • Product help centers
  • Orders and returns
  • Downloading and installing
  • My Adobe

Learning

  • Adobe Developer Connection
  • Adobe TV
  • Training and certification
  • Forums
  • Design Center

Ways to buy

  • For personal and home office
  • For students, educators, and staff
  • For small and medium businesses
  • For businesses, schools, and government
  • Special offers

Downloads

  • Adobe Reader
  • Adobe Flash Player
  • Adobe AIR
  • Adobe Shockwave Player

Company

  • News room
  • Partner programs
  • Corporate social responsibility
  • Career opportunities
  • Investor Relations
  • Events
  • Legal
  • Security
  • Contact Adobe
Choose your region United States (Change)
Choose your region Close

North America

Europe, Middle East and Africa

Asia Pacific

  • Canada - English
  • Canada - Français
  • Latinoamérica
  • México
  • United States

South America

  • Brasil
  • Africa - English
  • Österreich - Deutsch
  • Belgium - English
  • Belgique - Français
  • België - Nederlands
  • България
  • Hrvatska
  • Česká republika
  • Danmark
  • Eastern Europe - English
  • Eesti
  • Suomi
  • France
  • Deutschland
  • Magyarország
  • Ireland
  • Israel - English
  • ישראל - עברית
  • Italia
  • Latvija
  • Lietuva
  • Luxembourg - Deutsch
  • Luxembourg - English
  • Luxembourg - Français
  • الشرق الأوسط وشمال أفريقيا - اللغة العربية
  • Middle East and North Africa - English
  • Moyen-Orient et Afrique du Nord - Français
  • Nederland
  • Norge
  • Polska
  • Portugal
  • România
  • Россия
  • Srbija
  • Slovensko
  • Slovenija
  • España
  • Sverige
  • Schweiz - Deutsch
  • Suisse - Français
  • Svizzera - Italiano
  • Türkiye
  • Україна
  • United Kingdom
  • Australia
  • 中国
  • 中國香港特別行政區
  • Hong Kong S.A.R. of China
  • India - English
  • 日本
  • 한국
  • New Zealand
  • 台灣

Southeast Asia

  • Includes Indonesia, Malaysia, Philippines, Singapore, Thailand, and Vietnam - English

Copyright © 2012 Adobe Systems Incorporated. All rights reserved.

Terms of Use | Privacy Policy and Cookies (Updated)

Ad Choices

Reviewed by TRUSTe: site privacy statement