Developing Flash Lite 2.x and 3.0 Applications

About text in Flash Lite

Flash Lite 2.x and 3.0 support the following text features:

  • Static, dynamic, and input text fields

    At run time, the contents of a static text field can't change, but the contents of a dynamic or input text field can change. Input text fields allow users to enter text. Flash Lite 2.x and 3.0 support inline text input on most devices. On devices that support complex languages and in Flash Lite 2.0, input text fields use the device's generic text input mechanism. For more information about input text fields, see Using input text fields.

  • Embedded and device fonts

    You can have Flash Lite render text fields using font outlines that you embed in the SWF file or using fonts available on the device. For more information about font rendering methods, see Font rendering methods in Flash Lite.

  • Unicode text encoding

    Flash Lite can display text in any language as long as fonts containing the required character glyphs are available. For information on multilanguage authoring in Flash, see "Creating Multilanguage Text" in Using Flash.

  • Partial support for HTML formatting and the TextFormat class properties
  • Scrolling text

Flash Lite does not support all the text features that are in the desktop version of Flash Player. Flash Lite has the following limitations:

  • Advanced anti-aliasing, the enhanced font rendering technology available in Macromedia Flash Player 8 from Adobe and later, is not supported.
  • Text formatting is supported, but only the color, face, size, bold, and italic options are available. Also, formatting is not displayed if the device text font does not include the selected option. For example, a field formatted as italic appears as regular text when the device font does not include an italic version.
  • Device text cannot be masked, used as a mask, or rendered with transparency.
  • The Render Text As HTML formatting option is partially supported for input and dynamic text fields. Text is displayed without visible HTML tags, but formatting is honored only for the following tags: p, br, sbr, font (with face, color, and size attributes), b, and i.
  • Flash Lite does not support Cascading Style Sheets (CSS).
  • Flash components, including Label, TextArea, and TextInput, are not supported.
  • The TextField and TextFormat objects are partially supported, and additional limitations apply for Arabic, Hebrew, and Thai. For more information, see the Flash Lite 2.x and 3.0 ActionScript Language Reference.
  • The XML and XMLNode objects are supported.

Flash Lite 2.1 and later adds support for inline text input, predictive text engines, and XMLSocket:

  • Inline text input support lets the user enter text directly into text fields.
  • Predictive text support enables functionality such as word completion and candidate lists. Flash Lite 2.1 and later supports the top predictive text engines (such as T9, eZiTap/eZiText, and iTap) on any platform, as long as they are implemented similarly to the standard APIs provided by the predictive text engine vendors.
  • XMLSocket support extends the Flash desktop support to Flash Lite, and enables developers to create continuous, low-latency data connections for applications such as games and chat.