Skip to Content
Learning ActionScript 3.0
book

Learning ActionScript 3.0

by Rich Shupe, Zevan Rosser
December 2007
Beginner
382 pages
13h 12m
English
O'Reilly Media, Inc.
Content preview from Learning ActionScript 3.0

Chapter 10. TEXT

Working with text can be a basic affair, such as drawing a text box in the Flash interface and populating it with text at authoring time, or as complex as your needs require, perhaps including the dynamic creation of individual text fields for every character in a string to create an animated text effect. Learning how to move from authoring-only manual manipulations to runtime ActionScript control, however, can dramatically improve your text-handling capabilities and open a lot of creative doors.

In this chapter we’ll focus mostly on how to display, populate, and format existing text data. We’ll cover:

  • Creating Text Fields. Text fields can be created with ActionScript like any display object, freeing you from the Flash Property Inspector and allowing you to create fields on the fly.

  • Setting Text Field Characteristics. How you set up your text field will determine how the field will appear and function.

  • Selecting Text. You can select segments of text fields using ActionScript by specifying the start and end of a selection block.

  • Formatting Text. Text can be formatted easily by creating a formatting object that can be applied to one or more text fields at any time, including partial content of these fields.

  • Formatting with HTML and Cascading Style Sheets. It is also possible to use a limited subset of supported HTML and Cascading Style Sheets (CSS) features to format and style your text globally or on a field-by-field basis. Both HTML and style sheets can be created internally ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Learning ActionScript 3.0, 2nd Edition

Learning ActionScript 3.0, 2nd Edition

Zevan Rosser, Rich Shupe
ActionScript 3.0 Design Patterns

ActionScript 3.0 Design Patterns

William Sanders, Chandima Cumaranatunge
ActionScript 3.0 Bible

ActionScript 3.0 Bible

Roger Braunstein

Publisher Resources

ISBN: 9780596527877Errata Page