Adobe Flash

Adding text

You need to add some additional 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 need to load text from a file, 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 for decorative purposes. To add static text, follow these steps:

Open the banner.fla file you created in Part 1 of this tutorial, and rename the file banner2.fla.


If you didn't finish Part 1 of this tutorial, or lost your file, open 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 button.

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 the following figure).

Select Bitmap text (no anti-alias) in the Font rendering method pop-up menu.

Anti-alias options help small text appear clearly in your applications, but it makes large text look jagged. Because you're creating large text for the banner, you should use bitmap text which appears smooth when you create large text.

Change the size of the font to 20 points using the Font size pop-up menu.

Then you will need to change the font size so the text fits on the Stage.

Change text settings in the Property inspector.

When you finish, the text should be similar in size and in position to the text in the following figure.

Add some static text to the banner. Select any font you want to use.

Select the Text tool again, and type Underpaid? below the text you added previously.

Select the text field, and open the Property inspector, and then change the text to the same font you selected in the earlier steps.

Select a font size so the text is large but still fits on the Stage.

Repeat steps 9 through 11 to add the phrase Gnome? below the previous two lines of text. When you finish, your banner will resemble the first figure in this tutorial that displays the complete file for Part 2.

(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 To stage in the Align panel, and then click Align Horizontal center. (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.

After you finish saving the file, proceed to the following exercise, "Creating a symbol".


For advanced text effects, you can create text in FreeHand, save the file, and import it. Also, 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. You might also investigate FlashType advanced anti-alias options. See "About FlashType" in Flash Help for information.

by BrainBellupdated