| ||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||
| BoxedArt > Template Tutorial > Intermediate Template Customizations in Flash > How to Add an Additional Page to a Full Flash Site |
||||||||||||||||||||||||||||||||||||||
The BoxedArt Guide to Using Website TemplatesHow to Add an Additional Page to a Full Flash SiteThe layouts and scripting of Full Flash templates vary, but this tutorial will show you two different methods for creating an additional page that you may be able to apply to your specific template. The basic premise for adding pages is to duplicate as much as possible from an existing movie, button or page in your template, and then modifying the duplicates to reflect your new page's information. The first example is for a Full Flash template that uses individual .fla and .swf files for each of its pages. Launch Flash and open one of the .fla files from your
template's "fla" folder. Then go to File > Save As in Flash's top menu
and save the .fla with the name of your new page. Change the content
(text, images, etc) in this new movie to reflect what you want in your new
page. When your new content has been created, press the Ctrl and Enter keys on your keyboard. This creates a new .swf file. By default, the new .swf will go into the "fla" folder of your template package, so you'll need to copy the new .swf into the "html" folder, alongside all the other .swf files that make up the Full Flash site. Next, you'll need to create a button that will open your
new page. The menu buttons for your site will most likely be in the .fla
file named "index.fla", or perhaps "home.fla". Open the .fla that holds
the menu buttons, and create a new button that will take your viewers to
your new page. The original menu and the revised menu with a new button
added: The script for this new button, since it is a duplicate
of the button above it, "Friends", needs to be modified so it will open
your new movie. on (release)
{ You want your new button to read: on (release)
{ Next, press Ctrl and Enter to create a new .swf (in this case, of "index.swf"), and then copy the new index.swf from the "fla" folder to the "html" folder of your template. This will replace the original with your new version. When you play your movie, the new button will load the newpage.swf into your site.
The next example will go through steps needed to create a new page in a Full Flash template that uses only one .fla and one .swf, where the pages are contained within Movie Clip symbols. Launch Flash and open the template's .fla file in the "fla" folder. First you'll need to make a new button that will open
the new page. The original menu: The new button is a duplicate of the "Contacts" button that comes before it, so it has retained the script from that button. The script now needs to be modified to open your new page. Click on the new button to select it and open the Actions panel to view its script: on (rollOver)
{ This script has references to items that need to be changed to reflect your new page: "key4" becomes "key5" (and the Instance name key5 needs to be put in the Properties panel for the new button symbol); "cont" becomes "prod" (referring to "Products", your new page) and _root.p=61 will become _root.p=91 (details on that below). In the main movie there is a layer named "pages". This
layer contains a Movie Clip that holds the information for each of the
site's pages. Double-clicking on the "pages" Movie Clip on the stage
takes you inside its Timeline: The top layer has keyframes for each of the movie's pages; the bottom layer has keyframes with scripts. We'll copy the last section of keyframes (those that are referring to the Contacts page) and paste into the Timeline:
Next we'll change the information in the pasted
keyframes to refer to the new page, Products.
Also, the script in Frame 90 needs to be updated from _root.f = 71; to _root.f = 91; This accomadates the new section of frames that we pasted onto the end of the Timeline, where Frame 91 is the point that your new page will come in.
This process will consist of unlocking layers,
double-clicking on symbols on the stage, replacing or deleting text and
images, etc. Your resulting new page could look something like
this:
|
||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||
|
Copyright ©
2007 Big Resources, Inc. All Rights
Reserved |