| ||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||
| BoxedArt > Template Tutorial > Intermediate Template Customizations in Flash > How to Create Additional Buttons for a Flash Template Using Adobe
Flash |
||||||||||||||||||||||||||||||||||||||
The BoxedArt Guide to Using Website TemplatesHow to Create Additional Buttons for a Flash Template Using Adobe FlashThis tutorial will show you how to make additional buttons for your Flash movie that will keep the characteristics of the existing buttons yet will display different words and have a different URL link. First, open the .fla file in Flash, and locate the buttons on the stage by dragging the pink playhead at the top of the Timeline until the buttons appear on the screen.
Fig.1 above shows the main Timeline. The row of buttons are in a layer named "nav bar" and are contained in a Movie Clip. Doubleclick on the row of buttons with the black arrow tool. Flash now displays the timeline of the Movie Clip containing the buttons:
In Fig.2 above, the row of buttons are in a Layer named 'txt bttns'. Unlock this Layer if necessary, and with the black arrow tool, click once on a button (here we selected the last one on the right). In Fig.2, the Properties panel tells you that you have selected an "Instance of: nav4" The Swap tab (circled above) is what you will use to place your new button, but first you'll need to create it. You will do so by duplicating two existing symbols.
The Duplicate Symbol window opens:
In the Name field, type nav txt5 replacing the 'nav txt4 copy'. Click OK to close the window. Next, repeat these steps on the Movie Clip symbol that contains all your button's elements. In this case it is the symbol named nav4. (Right-click on nav4 in the Library panel, choose Duplicate, change the name to nav5 in the Duplicate Symbol window, click OK to close the window.) You should still be in the screen displayed in Fig.2 above. Click once on the last button in the row, nav4, to
select it. Use the arrow key on your keyboard to nudge the new button over to the right so it is last in the row of buttons. With the new button still selected on the stage, go to the Properties panel and click on the Swap tab (circled in Fig.2 above). The Swap Symbol window will open:
If you are using the .txt file that came with your tempate to display words and configure links, you will need to add the new information there as well. (If your Flash movie is not using an external .txt file, skip this part) Open the .txt file in Notepad. Locate the &button4=CONTACT US (or similar) and directly after it, type &button5= and the words you want your new button to show, such
as &button5=PRODUCTS Return to Flash. You will now finish up by making a few configurations to your new nav5 Movie Clip. Your Flash screen should look similar to Fig.3 below, where we have circled the new symbol
Double-click on this new symbol with the black arrow tool. Flash now displays its timeline:
Press the F9 key on your keyboard to open the Actions
panel. Make sure it says Actions - Button at the top. Replace /:url4 with /:url5 so your
script reads: Close the Actions panel.
In the Properties panel, click the Swap tab, and swap nav4txt to nav5txt. Do this for each keyframe in the txt layer: click once on the keyframe (black dot), click once on the movie clip with text box, and swap symbols. In this example (as shown in Fig.5 above) you'll swap symbols in a total of 6 keyframes (different Flash movies will of course differ as to the amount of keyframes you'll need to change). And, for the final configuration, you'll change the text
for the button. In this example the .txt file included with your template
package is governing what words are displayed on your button; if you are
not using a .txt file and are unsure how to create the new text for your
button in Flash, refer to the tutorial: With the black arrow tool, double-click on the movie clip with text box (circled in Fig.5). Flash opens the navtxt 5 movie clip's timeline:
In this particular example there are two layers of text boxes - duplicates of each other, and each a different color and slightly offset to give the words in your Flash movie some depth. Therefore we need to make our change twice, once for each. Unlock (if necessary) the top layer and lock the layer beneath, as shown in Fig.6. Click on the top layer's keyframe, then click on the dotted text box on the stage. In the Properties panel locate the Var (for variable) field, circled here:
Change the variable name for your new button's text - in
this case, change /:button4 to read /:button5 Test out your .swf to see your changes (Ctrl-Enter).
|
||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||
|
Copyright ©
2007 Big Resources, Inc. All Rights
Reserved |