First time here? First time here? Newsletter Signup Newsletter
Search tutorials
Author: Nathan Smith | Website: http://www.thecreativeforces.com

Now create another layer named labels and go to frame 15 and press F5. Separate this layer into three sections by clicking on frame 5 and hitting F6, do the same for frame 10.

After you have done this, give each section a frame label. The first should be Home, the second About and the third Contact. Make sure you capitalize the first letter of the labels. Here is a screenshot of what it should look like:


In the .fla create another layer and label it buttons. Once you have done this, create three buttons, naming them whatever you want. On the Home button you want to insert this code:

on (release) {

Add the same code to the other two buttons, but change the ‘Home” to About or Contact. Now you want to create another layer named content. Separate this layer into three sections like you did for the labels layer. In each section add some content, it can be anything you want for this example. Now that’s it for the Flash side of things.

Copy the index.html file into your project folder and open it up your favorite code editor, such as Dreamweaver or even Notepad will do. Scroll down until you see this code:

with (unFocus.Flash) {
if (Player.getVersion() >= 6) {
// output flash html
testHTML = new HTML();

Find this line:


Replace test.swf with the name of your .swf. Now change the width, height and other settings according to match your .swf. Save your file and upload the index.html, your .swf and the JavaScript folder to a directory on your webserver.

That’s it; you should be ready to go.

Nathan Smith-
http://www.thecreativeforces.co m
http://www.mycreativecollect ive.com

» Level Intermediate

Added: 2007-02-02
Rating: 10 Votes: 2
» Author
I am the co-owner of Creative Forces, Inc.
» Download
Download the files used in this tutorial.
» Forums
More help? Search our boards for quick answers!
Featured Flash FLA
» Author: Inocreato
» Title: RaiseTheBlocks
» Description: Raise all the blocks to win the game
Featured Sound Loops
Image for equalize

Audio Player

» Author: TomCat Carty
» Title: The Wood
» Description: Just a little game ending or it can maybe be looped. Recorders with music box and percussion to give the feel of well, I don't know, the woods? Free to use, just credit me. thank you
Latest Font
» Author: Fábio FAFERS
» Description: I created this font for free use. Everyone can apply it in personal or business texts. Its free, but I want to be communicated in case of business use. Donations are accepted to keep the project of free fonts alive! Thank you all
Featured Sound Fx
Image for equalize

Audio Player

» Author: Davisigner
» Description: Hmm... what to say about this one? It's reminiscent of the closing notes of the opening music from the Three Stooges done in a church organ style with a closing cymbal crash. I'll give this one away gratis, but feel free to check out my free loops and potential upcoming license-mandated ones over in the respective part of Flashkit.