First time here? First time here? Newsletter Signup Newsletter
Login | Register | 651326 Members and growing! | Flash Jobs
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:

layers

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) {
_root.gotoNewSection('Home');
}

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();
testHTML.setSrc("test.swf");
testHTML.setWidth(930);
testHTML.setHeight(585);
testHTML.setId('testSwf');
testHTML.setName('testSwf');
testHTML.setSwliveconnect(true);
testHTML.setMenu(false);
testHTML.setQuality('high');
testHTML.setScale('noscale');
testHTML.setAllowscriptaccess('always');
testHTML.setPlay(true);

Find this line:

testHTML.setSrc("test.swf");

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-
CREATIVE FORCES
http://www.thecreativeforces.co m
http://www.mycreativecollect ive.com

» Level Intermediate

Added: 2007-02-02
Rating: 10 Votes: 2
(10 being the highest)
» 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!

Comments

  • There are no comments yet. Be the first to comment!

  • You must have javascript enabled in order to post comments.

Leave a Comment
  • Your email address will not be published. All fields are required.
Featured Flash FLA
» Author: work2survive
» Title: Girl Walking 1kb
» Description: Walking girl, animation just takes 1kb, using high heels shoes, and fashion model attitude.
Featured Sound Loops
Image for equalize

Audio Player

» Author: BoxCat
» Title: CPU Talk
» Description: From the cyberpunk RPG, "Nameless: the Hackers" Completely Free to use! Keywords: edm hip hop rap electronic mysterious mission hacking chase exciting spy ios ambient chilling love happy sad angry suspense
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: nathan
» Description:

A recorded sound of the Dimensional Fork Gate.