PHOTOGRAPHERSONLINEPROOFING.COM

free online proof reading - www.photographersonlineproofing.com

Menu


Select the Background layer and click the Insert Layer icon. Name the new layer Components. [View full size image] 3. Choose


Window > Components to open the Components panel. Note Which components are listed in the Components panel depends on the version of ActionScript specified in Document Settings. A document can use only one version of ActionScript. In this book, we always use ActionScript 3.0. 4. Select the TextArea component in the User Interface folder in the Components panel. 5. Drag the TextArea component onto the Stage. Note After you drag the TextArea component, the Library panel contains the TextArea component; the UIScrollBar component, which will appear if there is too much text to contain in the text box; and the Component Assets folder, which enables you to run any component. [View full size image] Inserting Text in the Component The text area should fit neatly between the title and the grid, and it should be partially transparent. After you've resized and modified the appearance of the text box, you'll add text from the Intro.txt file to the component using the Property inspector. 1. Select the TextArea component with the Selection tool. 2. In the Property inspector, set the width to 600, height to 60, X value to 47, and Y value to 65. The text box appears beneath the heading. [View full size image] 3. Select Alpha from the Color menu, and select 57 for the percentage. Though the transparency of the component has changed, it still appears white on the Stage. However, it will be partially transparent when you test the movie. 4. Open the Parameters panel by clicking the Parameters tab in the Property inspector or by choosing Window > Properties > Parameters. 5. Scroll to the text parameter. 6. Open the Intro.txt file in a text editor or word processing application. The Intro.txt file is in the Lesson08/08Start folder you copied from the book's CD. 7. Select the text and choose Edit > Copy, or the Copy command for your text editor. 8. In Flash, click in the text parameter, and press Ctrl+V (Windows) or Command+V (Mac OS) to paste the text. [View full size image] Note You can also paste text into the text parameter in the Component inspector, but it's easier to work with text in the Parameters panel. Alternatively, you can assign the text using ActionScript. 9. Choose Control > Test Movie. The text appears, and if you click in it, you can edit it. If you're working with Flash for Windows, a scroll bar may appear in the text area. [View full size image]