Professional Documents
Culture Documents
Flash Tutorial
Flash Tutorial
Niranjan Khadka
Center for Teaching and Learning
TOOL PANEL
It appears on either side of screen and contains tools used to create or modify graphics and text.
Tools Options are listed underneath the palette and become active depending on the tools
selected at the current moment (if tools panel is not showing, click Windows menu or Ctrl+F2).
STAGE
The large white rectangle which represents the displayed area of your movie/animation is called
the stage.
STAGE SIZE
Clicking on the Size button, you will get the document properties panel. The Properties Panel
allows you to change the dimension of your file. This is very important because you want to set
your dimensions first. The dimensions are the size of your image. You do not want them to be
too large or too small to be visible.
FRAME
The still images that make up your overall moving image are called frames.
Frames
FRAME RATE
The default frame rate is 12fps (frames per second). That means 1 second of animation would
require 12 frames. The greater the frame rate is, the smoother the animation will be (high
quality movie is 30fps). Accordingly, increasing the number of frames on the timeline will
increase the time. (For example, when the frame rate is 3fps, compared to when it is 10 fps, the
transition from frame to frame will be much quicker for the 10fps thumbnail and therefore will
seem more like a movie, rather than a quick slideshow.)
TIMELINE
The timeline appears at the bottom of the screen. The use of timeline is to lay-out the sequence of
the frames.
KEYFRAME
The keyframe is the frame from where transitions start and end. Any change (animation) has to
be in a keyframe.
Keyframe
3. At the top right side of the screen, you will see a drop-down menu as labeled in
the figure below. Click on the arrow beside it and from the list of items which
appears, select DESIGNER.
Drop-down Menu
4. Then, click on the drop-down menu at the top right of the white screen called
Stage (as shown in the figure below) you see at the center of the screen. Select
the option Fit in window from the list that appears, to set the size of stage.
5. Create new layers
Locate the Timeline panel on the screen.
Click on the new layer button on the lower left of the timeline, three
times to insert three new layers.
Double-click on each of the inserted layers named layer1, layer2,
layer3 (on the left-hand side of the panel) and rename them as:
Pictures
Thumbnails
Actions
[Refer to the figure on the next page]
Inserted Layers
Timeline Panel
New Layer
Button
B. Getting Pictures
1. Choose any four pictures from your computer, but make sure they are larger
than 500 pixels in size. Also, the pictures should be of the type: .jpeg, .png
or .gif. The type is written next to the name the image was saved as.
2. Create a folder named animations on your desktop and save the chosen
pictures inside the folder.
Importing pictures to Flash CS5 Stage
1. Firstly, Click on File at the top-left corner of the screen. Select the option
Import, and then choose Import to library from the list.
2. Browse for the animations folder in the box that appears on screen. Select all
the pictures in the folder, and click open.
3. You will now have the names of the four pictures inside the Library Panel in
a list under the Name section (similar to the example below).
Library Panel
Name
Section
4. Click on the Thumbnail layer to select it, and then go back to the Library and
drag the first pictures from the name section to the stage.
5. Now go to the properties panel, and set the size and position of the picture by
the following steps:
Click on the picture, and you will see the Position and Size section in
the properties panel with options:
X:
Y:
W:
H:
Click on each of these options one by one and enter the following
values (in pixels) in the text box beside them. These values will be
template values.
X: 0.00
Y: 0.00
W: 80.00
H: 80.00
[Refer to the figure on the next page]
6. Once you change the dimension of the picture, the picture will move out of
your stage. So use your mouse to find the constrained picture out of your stage.
7. Drag the picture to the bottom left corner of the stage.
8. Repeat steps 4,5 and 6 for the remaining images and drag them to the bottom
of the stage such that they are in a row, and are approximately equally spaced
as shown below.
Four Images
Convert to
symbol
Instance name
5. Now drag the first picture from the Library panel. Make sure that the picture
must correspond to the small pictures that are on the bottom of the stage.
6. Go to properties panel and change the dimensions of the picture. (W: 400px,
H: 300px, X: 82 and Y: 0). You will notice that the picture will be aligned at
the middle of the stage right above the small pictures.
7. After you change the dimension of the first picture, right click on the second
frame of the Picture layer select Insert Blank Keyframe.
8. Repeat steps 4, 5 and 6 for the remaining pictures. Make sure you Insert
Blank keyframe in each section and name pic2, pic3 and pic4 for the
remaining pictures. Dimensions will be same for all pictures.
9. After you are done with step 8, select Action layer from the Timeline.
10. Click on the first section of Action layer and press F9 or right click and select
Action to go to the Action Script panel.
Application of Action Script
1. Type this exact code below on the Action panel screen.
stop( )
button1.addEventListener(MouseEvent.CLICK,play1);
function play1(event :MouseEvent):void
{
gotoAndStop("pic1");
}
button2.addEventListener(MouseEvent.CLICK,play2);
function play2(event :MouseEvent):void
{
gotoAndStop("pic2");
}
button3.addEventListener(MouseEvent.CLICK,play3);
function play3(event :MouseEvent):void
{
gotoAndStop("pic3");
}
button4.addEventListener(MouseEvent.CLICK,play4);
function play4(event :MouseEvent):void
{
gotoAndStop("pic4");
}
(The purpose of this action script is to give command to the buttons to show
thumbnail view of the picture when clicked.)
Action Script
2. Close the Action script window after you are done with typing the scripts.