Professional Documents
Culture Documents
Objectives
In this tutorial, you will learn:
To learn Flash MX 2004 multimedia development.
To learn Flash animation techniques.
To learn ActionScript 2.0, Flashs object-oriented
programming language.
To create an animation that preloads objects into a Flash
movie.
To add sound to Flash movies.
To embed a Flash movie into a Web page.
17.1 Introduction
Flash
Produce interactive, animated movies
Tools section
Contains tools that select, add and remove graphics from Flash movies
View section
Contains two tools that modify what portion of stage
Colors section
Provides colors for shapes, lines, and filled areas
Options section
Contains settings for the active tool
Layers
Actions panel
Main menu
Help panel
Property Inspector
Timeline Frames
Panel windows
Stage
Subselection tool
Lasso tool
Text tool
Rectangle tool
Brush tool
Fill transform tool
Paint bucket tool
Eraser tool
Zoom tool
Stroke color
Fill color
Tool Options
Movie options
Select Document Properties
Frame Rate
The speed at which movie frames display
Dimensions
Define size of movie as it displays on screen
Background Color
Stage color
Click Background Color box to select background color
Templates tab
Background color
New background
color
Color selection
eyedropper
Oval
Stroke color
Color of a shapes outline
Fill color
Color that fills the shape
Swap Colors
Switches the stroke and fill color
2004 Prentice Hall, Inc. All rights reserved.
Stroke color
No color
Fill color
Swap Colors
Keyframe
Stroke width
Stroke style
Selection location
Fig. 17.9 Modifying the size of a shape with the Property Inspector.
Gradient fills
Fig. 17.10 Choosing a gradient fill.
Red radial
gradient fill
Font selector
Character Spacing
Font height
Linked URL
Italic
Bold
Character position
Text alignment
Fig. 17.11 Setting the font face, size, weight and color with the Property Inspector.
Movie explorer
Displays the movie structure
2004 Prentice Hall, Inc. All rights reserved.
Fig. 17.14 Creating a new symbol with the Convert to Symbol dialog.
Symbol list
New Symbol Folder
Create New Symbol
Symbol Properties
Delete symbol
Active symbol
Edit scene
Edit symbols
Return to
main scene
Zoom
percentage
Keyframes
Current frame
Button states
Fig. 17.17 Modifying button states with a buttons editing stage.
Sound
Sync
Fig. 17.19 Adding sound to a button.
Compression
Preprocessing
Sample rate
Sound clip size and
compression
Fig. 17.20 Optimizing sound with the Sound Properties dialog.
Over state
Up state
Insert a
new layer
Delete layer
Alias text
Right
justify
Full justify
Motion tweening
Moves objects around the stage
Can be applied to symbols or grouped objects
Check Syntax
Actions toolbox
Script Navigator
stop action
Script window
Debug Options
Reference
View Options
Line type
Variable name
Fig. 17.29 Creating a dynamic text field with the Property Inspector.
em bed
Makes movie viewable in Netscape
Outline
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
5
-->
7
8
9
10
11
12
<head>
<title>Adding Flash to your Web site</title>
</head>
13
14
<body>
15
embedFlash.html
16
17
18
19
-->
20
<!-- installed.
-->
-->
21
22
<object classid =
23
"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
24
codebase = "http://download.macromedia.com/pub/shockwave/
25
cabs/flash/swflash.cab#version=7,0,0,0">
26
Outline
27
28
29
-->
30
-->
31
-->
32
33
34
"http://www.macromedia.com/go/getflashplayer">
35
</embed>
36
37
38
<noembed>
39
40
41
42
embedFlash.html
</noembed>
43
44
</object>
45
46
</body>
47 </html>
Polygonal mode
Selects straight-edged areas
Eraser tool
Removes shape areas by clicking and dragging across
Paintbrush tool
Applies color the same way the eraser removes color
Paint behind
Sets the tool to only paint in area void of color information
Paint inside
Paints inside a line boundary
2004 Prentice Hall, Inc. All rights reserved.
Free transform
tool
anchor
No Color
Fig. 17.34 Creating the oval graphic.
Mask layer
Masked layer
Fig. 17.35 Creating a mask layer.
Locked for
editing
Right justify
Line-spacing
adjustment
Fig. 17.37 Adjusting the line spacing with the Format Options panel.
Round Rectangle
Radius option
Fig. 17.39 Creating multiple instances of a symbol with the Library panel.
Text type
Line type
Width
Height
Position
Fig. 17.42 Centering an image on the stage with the Property Inspector.
Frame 5
Shape tween
Fig. 17.44 Adding the field symbol to the nam eW indow movie clip.
Edit scene
Symbol to
edit
Current
symbol
Fig. 17.46 Duplicating movie clip symbols with the Library panel.
Edit symbols
times field
Rotate
Fig. 17.49 Creating a rotating object with the motion tween Rotate option.
Fig. 17.51 Changing gradient colors with the Color Mixer panel.
Outer color
Resulting gradient
Up state
Hit state
Rotating
counterclockwise
Text
hyperlinked
buttons
17.8 ActionScript
With the following functions, you can build some
fairly complex Flash movies
17.8 ActionScript
Action
Description
goto
play
stop
toggleHighQuality
stopAllSounds
getURL
FSCommand
loadMovie/
unloadMovie
ifFrameLoaded
onClipEvent
on
if
while/do while
setProperty
duplicateMovieClip/
removeMovieClip
startDrag/stopDrag
trace
// (comment)
Fig. 17.55
w w w .m acrom edia.com
w w w .m acrom edia.com /softw are/fl
ash
w w w .actionscripts.org
w w w .fl
ashkit.com
w w w .m oock.org
w w w .opensw f.org
w w w .w ebm onkey.com /m ultim edia/shockw ave_fl
ash
w w w .shockw ave.com