Using Flash: Adding Text
Macromedia Flash – Adding Text
You need to add some text to your banner for decorative purposes. You can add several types of text to a Flash document: static text, dynamic text, or input text. Static text is useful when you need to add decorative text to the Stage, or any text that doesn’t need to change or load from an external source. Use dynamic text when you want to load text from a file or database, or change the text when the SWF file plays in Flash Player. Use input text when you want the user to type into a text field. You can take that text and send it to a database, have it manipulate something in the SWF file, and more.
You can add any of these types of text using the Text tool. For this exercise, you will add some static text to the Stage. To add static text, follow these steps:
Open the banner.fla document you created in Part 1 of this tutorial, and rename the file banner2.fla.
Note: If you didn’t finish Part 1 of this tutorial, or lost your file, open the folder of the source files ZIP archive that accompanies this tutorial. Inside the start folder, find banner2.fla and use this file to begin the tutorial.
- Select Insert > Timeline > Layer to insert a new layer. Double-click the layer’s name and type text to rename the layer.
- Select the Text tool in the Tools panel, which looks like a large letter A.
- Click near the top of the Stage and type Overworked? into the field that’s on the Stage.
Select the text field.
A bounding box appears around the text when you select it.
- Open the Property inspector (Window > Properties > Properties) and make sure Static Text appears in the Text type pop-up menu.
Change the font of the text to whatever font you prefer.
You change the font using the Font pop-up menu (next to the A icon, seen in Figure 1).
Change the size of the font to 24 points using the Font size pop-up menu. You will need to change the font size so the text fits on the Stage.
When you finish, the text should look similar in size and position to the text in Figure 2.
- Select the Text tool again and type Underpaid? below the text you added in Step 4.
- Select the text field and open the Property inspector. Change the text to the same font you selected in Step 7. Then select a font size so the text is large but still fits on the Stage.
Repeat Steps 6 and 7 to add the phrase Gnome? below the previous two lines of text.
When you finish, your banner will resemble Figure 3.
- (Optional) Open the Align panel (Window > Align) to align the text to the center of the Stage. Select a text block on the Stage, click the To stage button in the Align panel, and then click the Align Horizontal center button. (Move the mouse over a button in the panel to see what its name is.)
- Select File > Save to save your progress before moving on.
Tip: For advanced text effects, you can create text in Macromedia FreeHand, save the file, and import it. If you’re using Adobe Illustrator, you can export the text as a PNG or SWF file. You can then import this text into Flash.