- Home
- Tutorials
- Flash
- Intermediate
- Creating a Simple Website

Putting It All Together
This is the final part of this tutorial. Ok, focus on the "main" movie once more. Now select the "menu" layer we'd created before. Selct the Oval tool from the tools panel and draw a circle on the stage. Select the whole circle, convert it into a Movie Clip and give it the name "menu". Double-click the circle on the stage. When you enter the timeline of the "menu" movie clip, select the whole circle again and convert it into a movie clip again. This time, give it the name "button". Insert two more layers. Double-click the first layer (Layer 1) and re-name it to "home". Re-name the second and third layer to "images" and "about". Open up the Library panel and select the "images" layer. Drag-and-drop the object labeled "button" from the library panel onto the stage. Now select the "about" layer and Drag-and-drop the "button" object from library panel onto the stage again.
Ok, now we need to give the buttons some action. Select the button on the "home" layer and open up the Actions panel, then Copy-and-paste the following code into it:
on (release)
{
if (_root.nextPage == undefined)
{
_root.nextPage = "home.swf";
_root.container.loadMovie("home.swf");
}
else if (_root.nextPage != "home.swf")
{
if (_root.container.midFrame >= _root.container._currentframe)
{
_root.nextPage = "home.swf";
_root.container.play();
}
}
}
Now select the button on the "images" layer and in the Actions panel Copy-and-paste the following into it:
on (release)
{
if (_root.nextPage == undefined)
{
_root.nextPage = "image.swf";
_root.container.loadMovie("image.swf");
}
else if (_root.nextPage != "image.swf")
{
if (_root.container.midFrame >= _root.container._currentframe)
{
_root.nextPage = "image.swf";
_root.container.play();
}
}
}
Now select the button on the "about" layer and in the Actions panel Copy-and-paste the following into it:
on (release)
{
if (_root.nextPage == undefined)
{
_root.nextPage = "about.swf";
_root.container.loadMovie("about.swf");
}
else if (_root.nextPage != "about.swf")
{
if (_root.container.midFrame >= _root.container._currentframe)
{
_root.nextPage = "about.swf";
_root.container.play();
}
}
}
Last but not least, navigate back to the main timeline and select the "actions" layer.
With the actions layer selected, open up the Actions panel. Once opened, Copy-and-paste the following into it:
var nextPage = "home.swf";
container.loadMovie(nextPage);
That is pretty much it, for a description on how the system works continue to the next page.


