Flash CS3 Professional: SITA 2008 Instructor: Tyler Schroeder
Flash CS3 Professional: SITA 2008 Instructor: Tyler Schroeder
SITA 2008
About Flash
FLASH – hybrid between web-oriented bitmap handler and a vector - drawing
program
o interactive multimedia-authoring program and sophisticated animation
program
o viewed with Flash Player
o Generates very small file size with high-quality animation and optimal
sound
Access HELP menu for lessons and tutorials about using Flash.
Download a free trial version of Flash at http://www.adobe.com/downloads/.
Center white area is the stage framed by the light gray work area. Objects “off-
stage” are not visible.
Actions panel is below the stage area along with the Properties inspector – short
cuts located at far right end.
1) Normal frames
2) Keyframes – marked by filled black circles contain contents that
may differ from previous or next frames
3) Blank keyframes – marked by an empty white circle; does not
contain any content
Icons below frames in order: center frame, onion skin, onion skin
outline, edit multiple frames, modify onion markers. Also – current frame, frame
rate, elapsed time
[Icons under the tab, at top of work area: return arrow, current scene, edit scene
for menu of scenes, edit symbol for menu of symbols, and stage view control with
submenu % and show frame (without cropping visible area) / show all (includes
elements in work area).]
Flash movie: .swf (extension – pronounced 'swiff') – exported movie format for
delivery over the networks (better to use multiple movies rather than one movie
with multiple scenes
1) Portable Cross-platform binary format – compatible with all major
operating systems
Small file sizes – optimized with specialized Compress Movie
option
Individual resource compression – bitmaps individually compressed
No compression used on entire file – allows streaming playback
Speed – vector format draws quickly on slower computers
No external resources required – do not need fonts installed; do
need plugIn
2) Extensible Tagged format – each data type has a unique tag defining its
use and its function
SITA 2008 – Flash CS3 Professional 5
To convert a Flash document into a Flash movie, select EXPORT MOVIE from
the File menu.
Flash Tools:
Hand Zoom
Arrow Subselection (grabber) (magnifier)
(select) Lasso
Line (straight) (select) Stroke Color
Pen Text Color swatch
Oval Rectangle Fill Color Color
Pencil Brush Black/White swatch
(lines/shapes) (mark/shape) No
Free Fill Modifiers here color/Swap
Transform Transform depend on tool (reverses
fill/stroke)
Ink Bottle Paint Bucket selected
Eyedropper Eraser
(select)
Arrow = move whole object The Stroke Color and Fill Color controls in the
Subselect = moves individual anchor points toolbox let you select a solid stroke color or a
within object solid or gradient fill color, switch the stroke and
Shift key down with Oval = perfect circle fill colors, or select the default stroke and fill
Shift with Rectangle = square colors (black stroke and white fill). Oval /
Pencil tool = solid line rectangle objects (shapes) = both stroke and
Paintbrush = filled shapes fill Text objects and brush strokes = only fill
colors
Lines drawn with Line, Pen, Pencil tools = only
stroke
To TINT a symbol:
o Select the symbol
o In Properties: change color to TINT, Select color, Set % to
100%
TWEENED animation:
Shape tweening – morphing – changes shape over time
Motion tweening – change in size, location, or rotation over time
- can only be applied to one group, symbol, or editable text
per layer
- use multiple layers to motion tween multiple items in
same span of timeline
- For each item on a given layer…
o start with keyframe
o add group, symbol, or editable text
o click in frame where motion is to end
o right-click to add keyframe
o click on object and move it to a new location,
change its size, or rotation
o click on any frame between keyframes
o change TWEEN type to MOTION from the
Property Inspector (or right-click and select from
the menu)
o if done correctly, tweened section will turn blue in
color
To add sound:
o Create a sound layer – check out Window – Other Panels –
Common Libraries
o If sound library not there – import one
File – IMPORT – Open External Library
(find SoundsLib.fla file in DeptDir/cs/Harrison/AMCS 318 lab
or PMCS318 lab)
o Drag sound to layer.
To Publish:
o File – Publish Preview – Default (or F12) … make
corrections if necessary
o File – Publish into .swf file (Shift + F12)
Saves a .swf file which cannot be edited
o Be sure to save the .fla file as well, which can be edited.
Intermediate Flash
(as taken from UWEC website)
What is a Movie Clip?
o A movie clip is a type of symbol. There fore, just like symbols, movie clips
can be manipulated on the stage – resized, skewed, rotated, tweened, etc.,
all while the animation within them continues to play.
o As symbols, the clips are stored in the Library.
o As symbols, the original of the clip is not brought over and placed on the
stage – just the instance of the clip is brought to the stage.
o Therefore, it is vital that each instance of the clip is named so one can refer
to that particular clip by name when necessary.
o Even though Flash is a vector program and anything created with Flash
drawing tools is described in vector format, Flash has the capability of
importing both vector graphics and raster (bitmap - .bmp, .gif, .jpg, .pict, .tiff,
etc.) images.
o For some raster images, it is better to recreate or retrace the image with
Flash drawing tools rather than use the original images as the final Flash
movie will be smaller, look cleaner, and be scalable.
• Vector – smaller, scalable • Raster – larger, more
download time
o If you need to use bitmap images, do so, but try to minimize the impact of
large bitmap images on Flash playback performance.
o Regardless of how many times the bitmap is placed on the stage, the
actual bitmap is downloaded before the first occurrence of the bitmap.
o Limit the number of bitmaps used in any one frame of a Flash movie.
o Try spreading out the bitmap usage or hide a symbol instance of a
bitmap offstage in an earlier frame before it is actually visible so that it
will be loaded before you need it.
What are the three ways to bring a bitmap file into FLASH?
o Import a bitmap file directly to an active, unlocked layer (File – Import –
Import to Stage)
o Import a bitmap file directly to the library (File – Import – Import to Library)
o Copy the bitmap from an application, paste it on an active, unlocked layer
(Edit – Paste)
o When importing bitmaps directly to the stage, the file is also placed in the
library.
Remember - none of the bitmap files can be manipulated as symbols!
Since the very essence of Flash movies is the manipulation of
symbols, any image that will move in any way or be resized or skewed
must be converted to a symbol. Only images that will not be motion
tweened can remain as bitmaps.
o Importing vector graphics is similar. To learn more about the many properties
that can be set for bitmap images, converting raster images to vectors,
scanning sketches, and importing vector graphics, check out the on-line
HELP within Flash or consult the FLASH books in the library.
Movie Clips:
SITA 2008 – Flash CS3 Professional 12
Helpful keyboard shortcuts (full list available from Edit – Keyboard Shortcuts)
Cut frame Ctrl+Alt+X Convert to symbol F8
Copy Frames Ctrl+Alt+C Transform – Scale & Ctrl+Alt+S
Rotate
Paste Frames Ctrl+Alt+V Remove Transform Ctrl+Shift+Z
Clear Frames Alt+Backspace Group Ctrl+G
Insert Frame F5 Ungroup Ctrl+Shift+G
Remove Frames Shift+F5 Break Apart Ctrl+B
Clear Keyframe Shift+F6 Actions panel F9
SITA 2008 – Flash CS3 Professional 13
The ActionScript editor environment has two sections: the Script pane on the
right where code can be entered and the Actions panel toolbox on the left where
the choices of Actions that can be included in a Flash Action Script are listed.
The name of the object to which actions are being assigned is listed in the title
bar of the Actions panel.
In the bottom part of the toolbox is a Script navigator which is a visual
representation of the locations in the .fla file that have associated ActionScript. If
you click on an item in the Script navigator, the script associated with that item
appears in the Script pane and the playhead moves to that position on the
Timeline.
Several buttons are above the Script pane:
SITA 2008 – Flash CS3 Professional 14
Of all the possible actions, six different ones are commonly used:
Common Meaning ActionScript Notation examples
Actions
Global Functions: Timeline Control
Go to and Play Changes the current frame gotoAndPlay(“frameLabel”);
to the frame specified and gotoAndPlay(2);
then executes a play
action.
Go to and Stop Changes the current frame gotoAndStop(“frameLabel”);
to the frame specified and gotoAndStop(2);
then halts playback. Better to use a frame label.
play Sets a movie or a movie play();
clip in motion.
A single play action affects
only a single timeline.
stop Halts the progression of a stop();
movie or Movie Clip that is
in a play state.
stopAllSounds Mutes any sounds playing stopAllSounds();
in the movie at the time
the action is executed. Not
appropriate for stopping
individual sounds.
Global Functions: Browser/Network
getURL Similar to an anchor tag in getURL(“http://www.uwec.edu”);
HTML. One can specify getURL(“http://ed.com”,“_blank”);
the target for the new
window.
Action notes: Both Go to and Play and Go to and Stop can use either a frame
number or frame label. While using frame numbers works, it can lead to major
problems with scalability. Adding frames in the beginning or middle of a movie's
timeline will alter the number of the frame. Since labels move with the labeled
frame, it is better to use a frame label. With Play, once the end of a movie clip's
timeline is reached, playback loops back to the beginning of the clip, and the clip
continues playing. To prevent looping, add a stop action to the last frame of the
movie clip.
SITA 2008 – Flash CS3 Professional 15
To view information about what parameters to use in the script, right-click on the
code and view help.
Notice a lower case ‘a’ appears indicating an action has been added to the
frame.
Be sure to add a keyframe to frame 2 so that the stop action is only
associated with frame 1.
¾ Have the clip play just once and end on the last frame. Place a Stop action
on Frame 1 and a Stop action on the last frame.
¾ Have the clip continually loop until some other event triggers a stop. Place a
Stop action on Frame 1 and add a gotoAndPlay action on the last frame
which sends control back to frame 2.
o Click on UP in the Animations layer and add what you want to the
UP frame.
o Click on the Over frame. Insert a blank keyframe to remove the
contents. Add something here if wanted. Repeat for the Down
frame.
o Remove the Hit frame – Right-click, Remove frame.
- Be sure to drag the finished button onto the stage.
One can’t edit the invisible button and use the natural up, over, and down frames
of the button, because if the code for one button is changed, all instances of the
button will have the same code and cause the same movie clip to play.
In order to specifically direct the actions, it is important to name all instances of
symbols in the scene.
The name of the movie clip as a symbol is NOT the same as the instance. Since
it is possible to have multiple instances of the same movie clip, Flash expects a
SITA 2008 – Flash CS3 Professional 18
specific name for each instance on the stage in order to use ActionScript to
specifically play a movie clip.
To name movieclips already on the stage, hide the button layer. Access the clips,
name them, show the button layer again.
If the size of the invisible button needs changing: Modify – Transform – Scale
To code a button to start a clip when the mouse moves over the button:
o Be sure the correct button is selected
o Open the Movie Clip control booklet
o Double - click on ON to send the code to the script pane and reveal
the choices
Segmented Timelines
To animate the main icon that will travel to each corner, segment the timeline.
(See the tutorial.) When using ActionScript to activate a movie clip, be sure to
refer to the instance name of the movie clip on the scene, not the original name
of the movie clip in the library.
Publish Settings
¾ Check the Publish Settings
¾ FORMATS defaults as set so that Flash MX 2004 will export a Flash
movie and an HTML file with the proper markup tags to utilize Flash
Player 6 plug-in or Active X control.
¾ CLICK on the FLASH tab
o Selecting Flash 6 ensures compatibility with all of the new Flash
MX features.
o Load order determines how the Flash Player will draw the first
frame of the Flash movie.
Bottom up – layers load in ascending order
o Use Version 1.0 for the Action Script. Options include:
Generating a text report to help pinpoint bandwidth-intensive
elements.
Select Protect from IMPORT to safeguard your Flash movie
to prevent the .swf file generated from being able to be
imported back into Flash MX or altered in any way.
Macromedia Director can import and use Flash protected
movies and there even is an application called Action Script
Viewer that can extract ActionScript from your .swf files!
Never store any type of password information within your
FLASH movie.
Omit trace actions removes the trace actions used to help
debug the movie.
If debugging is permitted, a .swd file used for debugging is
also created.
Compress movie enables compression in Flash 6 movies
only to greatly reduce the size of text or ActionScript-heavy
movies. Little or no difference will be seen on other Flash
elements such as artwork and sound.
If Debugging is permitted, then a password can be entered
to access the Debugger panel live over the internet.
The JPEG slider is applied to bitmapped artwork in the Flash
movie.
Audio Stream displays the current audio compression
scheme for Stream audio.
Audio Even applies to default compression-enabled event
sounds.
SITA 2008 – Flash CS3 Professional 20
¾ HTML tab.
¾ The HTML tab includes a number of settings that control the way in which
Flash MX will publish a movie into a complete Web page with HTML tags
specifying the Flash Player. Options include:
o Template allows you to select a predefined set of HTML tags to
display your Flash movies. All templates use the same options
listed here in the HTML tab – the template simply places the values
of those settings into HTML tags scripted in the template. All of the
preinstalled templates include HTML tags to create an entire web
page, complete with <head>, <title>, and <body> tags.
o Dimensions controls the WIDTH and HEIGHT values of the
<object> and <embed> tags.
Match movie matches the same dimensions set in the
Modify Document options
One can find these options in FLASH itself using MODIFY –
DOCUMENT…
The other two options for dimensions are pixels or percent.
• Percent scales the movie to the size of the browser
window or a portion of it. Using a value of 100 on both
width and height expands the Flash movie to fit the
entire browser window.
• Width and Height can only be entered if pixel or
percent is selected.
o Playback
Pause at start is like adding a stop action. This is usually off
as play control is handled within the movie itself.
Loop causes the movie to repeat an infinite number of times.
If it is not checked, the Flash movie stops on the last frame
unless some other ActionScript event is initiated on the last
frame.
Display menu controls the user’s access to the shortcut
menu anywhere within the movie area.
When the device font is checked, fonts that are not installed
on the Player’s system are replaced with other system fonts.
o Quality determines how Flash artwork in a movie will be rendered.
While best quality is nice, it may cause problems with slower
processors.
o Window mode applies only to 32-bit windows versions of IE.
o HTML alignment determines how the align attribute will be set in
the object and embed tags.
o Scale works with the dimensions setting and determines how the
movie displays on the HTML page.
SITA 2008 – Flash CS3 Professional 21
Default Show all fits the entire Flash movie into the area
defined by the dimensions setting without distortion.
No border forces it to fill the area defined by dimensions
without leaving borders
Exact fit stretches the movie to fill the entire area defined.
No scale prevents the movie from scaling beyond its original
size as defined by the document properties.
o Flash alignment determines how the movie is aligned within the
player window.
o Show warning messages alerts you to errors during the actual
publish process.
¾ Finally, Click on the FLASH choice under the media icon in the Common
category.
o Double-click the "F" icon that appears, Switch the type of document to
Shockwave Flash
o Find the .html file, Click OK
o Click on the icon and make it large enough to match the size of the
flash movie wanted
Check out the code – a more detailed OBJECT with an EMBED
tag in included – all the parameters are included.