How to Use HTML Text Formatting in Flash
Adobe Flash is the leading animation and interactive application authoring program. HTML is an Internet programming language that tells web browsers how to format and display text and graphics. HTML language code, or "tags," also defines "hyperlinks"---the clickable text links in web pages that jump users to other pages or URLs. Flash supports several ways to format text with HTML tags. One the easiest and more common methods is Flash's "Render Text as HTML" feature. This method works in all versions of Flash.
Instructions
-
Formatting Text as HTML in Flash
-
1
Start a new Flash (.fla) movie or open an existing .fla file in which you want to add HTML formatted text.
-
2
Click the "Text Tool," in the Tools panel (the "T" icon).
-
-
3
Click the "Properties" panel tab. (Depending on your version of Flash, the Properties tab displays on the right, top, or bottom of the application window.) Click the "Text Type" drop-down menu and select "Dynamic Text."
Note: if you need a text box containing more than one line of text, select "Multiline" from the "Behavior" drop-down menu in the "Paragraph" section of the Properties panel.
-
4
Drag out a text box on the stage with the Text Tool mouse cursor.
-
5
Click the "Render Text as HTML" button in the "Character" section of the Properties panel. This is the second of three buttons beneath the "Anti-alias" drop-down menu.
-
6
Type or copy and paste your text into the text box.
-
7
You can now apply font, style, color and size formatting to the text. Simply select the text you want to format and use the "Character" options in the Properties panel to apply the desired attributes. When you test the movie (click "Control" on the menu bar and choose "Test Movie"), it displays as HTML formatted text.
Creating HTML Text Hyperlinks in Flash
-
8
Click the "Text Tool" in the Tools panel (the "T" icon).
-
9
Select the text on the stage on which you want to create a hyperlink.
-
10
Go to the "Options" section of the Properties panel and type the link URL in the "Link" field. You can also set the target browser page from the "Target" drop-down menu. Use "_blank" to open the linked URL in a new browser window, or choose "_self" to open the URL in the same browser window.
-
11
Test the movie (click "Control" on the menu bar and choose "Test Movie"). When you click the hyperlink text, it should open the linked URL. If not, check your URL in the Link field in the Properties panel.
-
1
Tips & Warnings
You can create a scrollable text box from your multi-line text box like this: With the text box selected, click "Text" on the menu bar and choose "Scrollable."
You can set alignment (center, left, right), spacing and margins with the options in the "Paragraph" section of the Properties panel.
References
- Photo Credit adresse image by Travelfish from Fotolia.com