1 Step RoboPDF, ActiveEdit, ActiveTest, Authorware, Blue Sky Software, Blue Sky, Breeze, Breezo, Captivate, Central,
ColdFusion, Contribute, Database Explorer, Director, Dreamweaver, Fireworks, Flash, FlashCast, FlashHelp, Flash Lite,
FlashPaper, Flash Video Encoder, Flex, Flex Builder, Fontographer, FreeHand, Generator, HomeSite, JRun, MacRecorder,
Macromedia, MXML, RoboEngine, RoboHelp, RoboInfo, RoboPDF, Roundtrip, Roundtrip HTML, Shockwave, SoundEdit,
Studio MX, UltraDev, and WebHelp are either registered trademarks or trademarks of Macromedia, Inc. and may be registered in
the United States or in other jurisdictions including internationally. Other product names, logos, designs, titles, words, or phrases
mentioned within this publication may be trademarks, service marks, or trade names of Macromedia, Inc. or other entities and
may be registered in certain jurisdictions including internationally.
Third-Party Information
This guide contains links to third-party websites that are not under the control of Macromedia, and Macromedia is not
responsible for the content on any linked site. If you access a third-party website mentioned in this guide, then you do so at your
own risk. Macromedia provides these links only as a convenience, and the inclusion of the link does not imply that Macromedia
endorses or accepts any responsibility for the content on those third-party sites.
Speech compression and decompression technology licensed from Nellymoser, Inc. (www.nellymoser.com).
Sorenson™ Spark™ video compression and decompression technology licensed from
Sorenson Media, Inc.
Editing: Evelyn Eldridge, Mark Nigara, Lisa Stanziano, Anne Szabla
Production Management: Patrice O’Neill, Kristin Conradi, Yuko Yagi
Media Design and Production: Adam Barnett, Aaron Begley, Paul Benkman. John Francis, Geeta Karmarkar, Masayo Noda,
Paul Rangel, Arena Reed, Mario Reynoso
Special thanks to Jody Bleyle, Mary Burger, Lisa Friendly, Stephanie Gowin, Bonnie Loo, Mary Ann Walsh, Erick Vera, the beta
testers, and the entire Flash and Flash Player engineering and QA teams.
Macromedia Flash Basic 8 and Macromedia Flash Professional 8 provide
everything you need to create and deliver rich web content and powerful
applications. Whether you’re designing motion graphics or building datadriven applications, Flash has the tools necessary to produce great results
and deliver the best user experience across multiple platforms and devices.
The samples in this book are designed to introduce you to Flash. As you
explore the samples, you will see many of the basic techniques used in
creating Flash applications.
For additional samples see www.macromedia.com/go/flash_samples.
NOTE
This book is not a comprehensive manual that details all of the features of
Flash. For in-depth information about how to use Flash, see Using Flash
and Learning ActionScript 2.0 in Flash.
5
6Introduction
CHAPTER 1
Graphics
Graphics samples are provided when you install Macromedia Flash 8. This
chapter contains a brief overview of each sample.
This sample shows how to create a realistic-looking animated drop shadow
by layering two instances of the same movie clip and adding a drop shadow
filter to the lower layer.
To re-create the process of constructing this sample, you first create the
shadow effect for the dog by nesting the animation inside a movie clip. You
then duplicate the movie clip instance and place it behind the original
instance. (You can keep the duplicate on the same layer and arrange it
behind the original instance, or paste it to a new layer below the original.)
You then select the duplicate instance and, in the Filters tab of the Property
inspector, select Drop Shadow from the Plus (+) menu.
Next, adjust the strength level to around 45% and select Hide Object. This
hides the movie clip object but reveals the drop shadow filter properties.
You can make further adjustments by setting Quality to Low, Medium, or
High, or modifying the amount of blur, the color, the angle, or the distance
of the blur effect from the original graphic.
1
7
To prevent this effect from looking too much like a drop shadow against a
flat wall behind the original object, you can use the Free Transform tool to
skew the filtered movie clip instance. This technique takes a bit of trial and
error. Squash and skew the instance until it looks as if the shadow is being
cast upon a floor. (You may need to reposition the instance.) Test the movie
clip, and you see the effect come to life.
You can find the sample source files, drop_shadow_dog.fla and
drop_shadow_monkey.fla, in the Samples folder on your hard disk.
■ In Windows, browse to boot drive\Program Files\Macromedia\Flash
8\Samples and Tutorials\Samples\Graphics\AnimatedDropShadow.
■ On the Macintosh, browse to Macintosh HD/Applications/
Macromedia Flash 8/Samples and Tutorials/Samples/Graphics/
AnimatedDropShadow.
These samples were developed by Chris Georgenes.
Animation and gradients
This sample shows how to create a realistic-looking animation with
gradients and drop shadows.
To re-create the process of constructing this sample, you first design the
eight-ball graphic. Start by mixing a radial gradient containing three colors:
black, white, and a medium gray. Then create a circle with the Oval tool
(hold down Shift to constrain the shape so it is perfectly round), and fill it
with the new radial gradient. Using the Gradient Transform tool, edit the
radial gradient fill by offsetting it from the center of the circle. This gives
the illusion of depth as the off-center white highlight gradually changes to
black and a subtle amount of gray appears in the lower-right corner of the
sphere. This is crucial for making a convincing-looking sphere; it suggests
light wrapping around from behind the ball.
Then convert the gradient fill to a graphic symbol and edit it further by
adding a new layer and applying a shadow using a linear gradient. The
linear gradient uses two colors with varying amounts of alpha mixed in.
8Graphics
The next step is to create a movie clip symbol and place this eight-ball
graphic inside it. Inside this movie clip is where the “8” graphic is added
along with a mask layer. Then add a mask that is the same size and shape as
the eight ball, and use the Free Transform tool and motion tweening to
create the illusion of the ball rolling in various directions by moving and
squashing the “8” graphic across the surface of the circle. The mask
constrains the visibility of the “8” graphic to the exact area of the circle
below it. This makes for a convincing illusion of the ball rolling.
Then add animations of the ball rolling to a stop and starting from a
stationary position. Use descriptive frame labels and simple frame actions
so this movie clip can be targeted later with ActionScript from the main
timeline. The movie clip has to be set up this way; it uses a drop shadow,
which can be applied only to movie clip instances.
Applying the drop shadow is the easiest part, thanks to the graphics filters
in Flash. You simply select the movie clip instance, and from the Filters tab
of the Property inspector, click the Plus (+) pop-up menu and select Drop
Shadow. From there you can adjust the amount of blur, strength, quality,
color, angle distance, and so on.
The drop shadow filter is used to create blurs only when the eight ball is
animated moving rapidly across the screen. This emphasizes the speed at
which the ball is moving and creates a dynamic visual effect.
You can find the sample source file, animation_and_gradients.fla, in the
Samples folder on your hard disk.
■ In Windows, browse to boot drive\Program Files\Macromedia\Flash
8\Samples and Tutorials\Samples\Graphics\AnimationAndGradients.
■ On the Macintosh, browse to Macintosh HD/Applications/
Macromedia Flash 8/Samples and Tutorials/Samples/Graphics/
AnimationAndGradients.
This sample was developed by Chris Georgenes.
Animation and gradients9
10 Graphics
CHAPTER 2
Accessibility
An accessibility sample is provided when you install Macromedia Flash 8.
This chapter contains a brief overview of this sample.
This sample shows how to use accessibility features such as tab ordering,
components, and the Accessibility panel. In this sample, you can see how
to use the new authoring tool features and user interface, which are geared
toward building applications that contain the accessibility features. An
arrow moves to indicate which element on the Stage has the focus. Explore
the source code to learn more about how to take advantage of the Flash
accessibility features.
You can find the sample source file, AccessibleApplications.fla, in the
Samples folder on your hard disk.
■ In Windows, browse to boot drive\Program Files\Macromedia\Flash
8\Samples and Tutorials\Samples\Accessibility\AccessibleApplications.
■ On the Macintosh, browse to Macintosh HD/Applications/
Macromedia Flash 8/Samples and Tutorials/Samples/Accessibility/
AccessibleApplications.
2
11
12 Accessibility
CHAPTER 3
Masking
Masking samples are provided when you install Macromedia Flash 8. This
chapter contains a brief overview of each sample.
This sample explores Flash Player support for masking device fonts. The
main features illustrated in the sample are device font masking,
components, and scriptable masks. Newly added support in Flash Player
for masking device fonts expands the possibilities for using scriptable
masks on Flash content. Device font masking allows device fonts to be
used inside components that mask their content, as well as custom masks
that you create. This sample shows examples of both types of masking.
You can find the sample source file, DeviceFontMasking.fla, in the Samples
folder on your hard disk.
■ In Windows, browse to boot drive\Program Files\Macromedia\Flash
8\Samples and Tutorials\Samples\Masking\DeviceFontMasking.
■ On the Macintosh, browse to Macintosh HD/Applications/
Macromedia Flash 8/Samples and Tutorials/Samples/Masking/
DeviceFontMasking.
3
13
Scriptable masks
This sample shows how to dynamically mask Flash content at runtime
using scriptable masks and components. Scriptable masking allows precise
control over how masks behave at runtime, and allows the mask and the
masked content to be dynamically changed at runtime. This sample shows
different types of masks and masked content that are controlled by a user
interface built with components. Explore this sample to learn more about
masking and building interfaces with components.
You can find the sample source file, ScriptableMasksPart2.fla, in the
Samples folder on your hard disk.
■ In Windows, browse to boot drive\Program Files\Macromedia\Flash
8\Samples and Tutorials\Samples\Masking\ScriptableMasksPart2.
■ On the Macintosh, browse to Macintosh HD/Applications/
Macromedia Flash 8/Samples and Tutorials/Samples/Masking/
ScriptableMasksPart2.
14 Masking
CHAPTER 4
Text
Text samples are provided when you install Macromedia Flash 8. This
chapter contains a brief overview of each sample.
This sample uses the many new text enhancements added to Macromedia
Flash Basic 8 and Macromedia Flash Professional 8. The features
highlighted in this sample are text styles, inline images, hyperlink
improvements, and small text optimization. The text enhancements
provide better and more precise control over text as it is entered in Flash
Player. This sample loads an external HTML file named sample.html into
a text field in the SWF file. However, you could use any text file that
incorporates a tag-based format such as XML or HTML. New support for
Cascading Style Sheets allows Flash to style the text in a given text field for
each tag before displaying it. This sample uses a style sheet named style.css.
Additionally, Flash Player supports the
your text wraps around.
You can find the sample source file, TextEnhancements.fla, in the Samples
folder on your hard disk.
■ In Windows, browse to boot drive\Program Files\Macromedia\Flash
8\Samples and Tutorials\Samples\Text\TextEnhancements.
■ On the Macintosh, browse to Macintosh HD/Applications/
Macromedia Flash 8/Samples and Tutorials/Samples/Text/
TextEnhancements.
img tag, allowing inline images that
4
15
Loading...
+ 33 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.