PHOTOGRAPHERSONLINEPROOFING.COM

download proofing tools for - www.photographersonlineproofing.com

Menu


* Configure an interactive component * Use ActionScript to enable a component This lesson will take less than an hour to complete.


If needed, remove the previous lesson folder from your hard drive, and copy the Lesson08 folder onto it.   Getting Started In this lesson, you'll use components to create an interactive display of minerals; when the viewer clicks the image of a mineral, text about it appears. You'll start by viewing the final document. 1. Double-click the 08End.swf file in the Lesson08/08End folder. 2. Click an image in the grid on the left. The text on the right changes. Introductory text appears at the top of the screen. You'll create three components: one for the introductory text, one for the grid, and one for the mineral text. You'll use ActionScript to change the text display when the viewer clicks an image. 3. Close the 08End.swf file. 4. Double-click the 08Start.fla file in the Lesson08/08Start folder to open it in Flash. The Flash document contains the background image. 5. Choose File > Save As. Name the file 08_workingcopy.fla, and save it in the 08Start folder. Saving a working copy ensures that the original start file will be available if you wish to start over. 6. Open the 08End.fla file, so that you can refer to it when you create ActionScript. About Components Components are prebuilt movie clip symbols with defined parameters that you can use to add user interface elements, such as buttons, check boxes, or scroll bars, to your document. You can modify the parameters to change a component's appearance and behavior. In addition to creating simple user interface elements, such as buttons, components can create content, such as lists or grids. You can drag components from the Components panel onto the Stage and simply modify the parameters. However, for more complex user interface elements, use ActionScript 3.0 to modify the components. Each component has a unique set of ActionScript methods, properties, and events that make up its application programming interface (API). The API also allows you to create new, custom components of your own. You can download components that have been built by members of the Flash community on the Adobe Exchange at www.adobe.com/exchange/.   Adding a Text Component At the top of the document is a box containing introductory text. You'll create that box using a TextArea component from the Components panel. This is a simple user interface element that doesn't require any ActionScript. Dragging a Component to the Stage Components are listed in the Components panel. You'll drag the TextArea component onto the Stage. Flash will automatically add the TextArea component, as well as a UIScrollBar component and a Component Assets folder, to the Library panel. 1. Lock the Background layer in your working copy of the start file. 2.