Tutorial: Creating Links within a Flash Movie
Click by Click: Creating Links within a Flash Movie
Full Version: This is a shortened click by click version of a: Full Length Tutorial
Free
Flash Tutorial
This
tutorial is designed for people who have little or NO Experience
of using Flash. The aim of the tutorial is to s how you how to link one Flash 'page' with another 'page'. Page
is in inverted commas because Flash does not really have pages but Frames, but
the idea is the same. This tutorial explains how to link one part of a Flash Movie with next part of the Movie.
My Example: Download
the Flash file Beg 004 a
Click on
the triangle button.
See
Demo Movie of how to build this Flash file
Example
of small Flash Movie with buttons linking one 'page' or Frame of the Flash
Movie to the next.
Step
One: Setting up the document
Go to: File > New > General Tab > Flash Document >
OK
We are now ready to customise the document.
Go to: Modify > Document (Ctrl J)
Type in the dimensions that you want for
your Movie. My Movie is: 200 x 130 px (pixels)
Select a Background Colour by clicking
on: Background Color
Click: OK
Save your file: File > Save (Ctrl S)
Step Two: Setting up Frame 1
Select the Text Tool:
Click and then Type on the Stage (work area) : Page One
When you have finished typing go back to the Selection tool:
If you want to change the Font colour, style or size you can do so in the Property Inspector: Window > Properties (Ctrl F3)
Go to: Windows > Common Libraries > Buttons
Choose a button. I selected: Classic Buttons > Circle
Buttons > Circle
Button - Next
Drag the button onto the: Stage (work area)
Save your file: File > Save (Ctrl S)
Step
Three: Setting up Frame 2
Go to the Timeline and place your cursor
in: Frame 2
Right click (Ctrl click on a Mac) and select: Insert
Keyframe
Use your Text Tool to
over write the word 'one' and type: two
When you have finished typing reselect the Selection Tool:
If the Button Library is closed open it: Windows > Common Libraries > Buttons
Drag onto Stage the: Previous Button
Save your file: File > Save (Ctrl S)
Step
Four: Setting up Frame 3
Right click in Frame 3 and select:
Insert Keyframe
Use your Text Tool to
over write the word 'two' and type: three
When you have finished typing reselect the Selection Tool:
Delete the: Next Button
Save your file: File > Save (Ctrl S)
Step Five: Testing the Movie
Time to test your Movie. Go to: Control > Test
Movie
Close the Test Window. You do this by clicking on the Red Cross:
Step
Six: Stopping the Movie from Auto Playing
Select: Frame 1 (the first Frame
with a black dot in it)
Open the Actions Panel: Window > Actions (F9)
Click on the Menu Down Arrow on the top left corner of the Actions Panel and tick: Script Assist
Important Note: The following instructions will not work unless Script Assist is on.
Script Assist is on if ticked in the Action Panel Menu: >
Click on the: Plus Sign > Global
Functions > Timeline
Control
> Stop
Your Actions Panel should display the following ActionScript:
stop ();
Close the Actions Panel by clicking on the cross: (F9)
Test your Movie: Control > Test Movie (Ctrl Enter)
Close the Test Window:
Save your file: File > Save (Ctrl S)
Step Seven: Attaching Actionscript to the First Button - Frame 1 Next
Now it is time to make the Buttons work. This is also done with ActionScript.
In the Timeline, if you are not already on Frame 1, click on: Frame 1
Click off Stage so that all the objects are: De-Selected (Ctrl Shift A)
On the stage click on the: Button
Open the Actions Panel: Window > Actions (F9)
Click on the: Plus Sign > Global
Functions > Timeline
Control
> Goto (Esc G O)
For Frame type the number: 2
In the Actions Panel select the Radio Button:
The Actions should look like this:
on (release )
{
gotoAndStop (2);
}
Close the Actions Panel by clicking on the cross: (F9)
Time to test again. Go to: Control > Test Movie (Ctrl Enter)
Close the Test Window by clicking on the cross:
Save your file: File > Save (Ctrl S)
Step Eight: Add the Actions to the Frame 2 Button - Next
This button takes you onto the next Frame which is Frame 3.
In the Timeline, if you are not already on Frame 2, click on: Frame 2
Click off Stage so that all the objects are: De-Selected (Ctrl Shift A)
On the stage click on the: Next Button
If closed, open the Actions Panel: Window > Actions (F9)
Click on the: Plus Sign > Global
Functions > Timeline
Control
> Goto (Esc G O)
For Frame type number: 3
In the Actions Panel select the Radio Button:
The Actions should look like this:
on (release )
{
gotoAndStop (3);
}
Close the Actions Panel by clicking on the cross: (F9)
Save your file: File > Save (Ctrl S)
Step Nine: Add the Actions to the Frame 2 Button - Previous
This button takes you back to Frame 1.
In the Timeline, if you are not already on Frame 2, click on: Frame 2
Click off Stage so that all the objects are: De-Selected (Ctrl Shift A)
On the stage click on the: Next Button
If closed, open the Actions Panel: Window > Actions (F9)
Click on the: Plus Sign > Global
Functions > Timeline
Control
> Goto (Esc G O)
For Frame check that is says: 1 (this is the default so it should already say: 1)
In the Actions Panel select the Radio Button:
The Actions should look like this:
on (release )
{
gotoAndStop (1);
}
Close the Actions Panel by clicking on the cross: (F9)
Save your file: File > Save (Ctrl S)
Step Ten: Add the Actions to the Frame 3 Button - Previous
This button takes you back to Frame 2.
In the Timeline click on: Frame 3
Click off Stage so that all the objects are: De-Selected (Ctrl Shift A)
Select the: Previous Button
If closed, open the Actions Panel: Window > Actions (F9)
Click on the: Plus Sign > Global
Functions > Timeline
Control
> Goto (Esc G O)
For Frame number type: 2
In the Actions Panel select the Radio Button:
The Actions should look like this:
on (release )
{
gotoAndStop (2);
}
Save your file: File > Save (Ctrl S)
Step Eleven: Testing All the Buttons
Time to test again. Go to: Control > Test Movie (Ctrl Enter)
You should be able to move back and forth through all the Frames: Click the Buttons
Close the Test Window by clicking on the cross:
You should now be home and dry. Well done!
Full Version of this: Tutorial
All material on this site is protected under international copyright © law. DO NOT reproduce any material from this site without written permission. Please
ask as permission is often granted.