tutorial 6 creating special effects with graphics and gradients

36
Tutorial 6 Creating Special Effects with Graphics and Gradients

Upload: stamos

Post on 24-Feb-2016

29 views

Category:

Documents


0 download

DESCRIPTION

Tutorial 6 Creating Special Effects with Graphics and Gradients. Objectives. Import bitmap graphics into a document Change a bitmap graphic’s properties Convert a bitmap graphic to a vector graphic Create a fade effect animation using bitmaps Learn about gradients. Objectives. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Tutorial 6 Creating Special Effects with Graphics and Gradients

Tutorial 6

Creating Special Effects with Graphics

and Gradients

Page 2: Tutorial 6 Creating Special Effects with Graphics and Gradients

XPXPObjectives• Import bitmap graphics into a document• Change a bitmap graphic’s properties• Convert a bitmap graphic to a vector graphic• Create a fade effect animation using bitmaps• Learn about gradients

New Perspectives on Adobe Flash CS4 2

Page 3: Tutorial 6 Creating Special Effects with Graphics and Gradients

XPXPObjectives• Create and save a new gradient• Use and transform a gradient• Explore the Flash publish settings• Publish a Flash movie• Create a publish profile• Export a Flash graphic• Insert a Flash movie into an existing Web page

New Perspectives on Adobe Flash CS4 3

Page 4: Tutorial 6 Creating Special Effects with Graphics and Gradients

XPXPWorking with Bitmaps• Bitmaps appear more natural than vector

graphics• A photograph is an example of a bitmap graphic• Bitmaps are stored as a matrix of pixels• Bitmaps must be imported into a Flash document• A bitmap may be converted into a vector graphic

New Perspectives on Adobe Flash CS4 4

Page 5: Tutorial 6 Creating Special Effects with Graphics and Gradients

XPXPImporting a Bitmap• On the Application bar, click File, point to Import,

and then click Import to Stage or Import to Library

• In the Import or Import to Library dialog box, navigate to the location of the bitmap file, and then select the bitmap file in the file list

• Click the Open button

New Perspectives on Adobe Flash CS4 5

Page 6: Tutorial 6 Creating Special Effects with Graphics and Gradients

XPXPBitmaps in the Library Panel

New Perspectives on Adobe Flash CS4 6

Page 7: Tutorial 6 Creating Special Effects with Graphics and Gradients

XPXPSetting a Bitmap’s Properties• Bitmap Properties dialog box• Properties: name, smoothing, compression, and quality

settings• Compression: Lossless (PNG/GIF), Photo (JPEG)• JPEG Quality range: 0 to 100• Setting bitmap properties in the banner– Apply additional compression to reduce file size– Loss in quality is not discernible due to small bitmap

size

New Perspectives on Adobe Flash CS4 7

Page 8: Tutorial 6 Creating Special Effects with Graphics and Gradients

XPXPBitmap Properties Dialog Box

New Perspectives on Adobe Flash CS4 8

Page 9: Tutorial 6 Creating Special Effects with Graphics and Gradients

XPXPAnimating Bitmaps• Instances of bitmaps can be animated – Instance on Stage must first be converted to a symbol

• Types of motion tweens applied to bitmaps:– Moving, rotation, scaling, and fading

• Fade effects are created by changing alpha amount• Alpha amounts controls image – 0% makes the object completely transparent– 100% makes the object completely opaque

New Perspectives on Adobe Flash CS4 9

Page 10: Tutorial 6 Creating Special Effects with Graphics and Gradients

XPXPFade Animation

New Perspectives on Adobe Flash CS4 10

Page 11: Tutorial 6 Creating Special Effects with Graphics and Gradients

XPXPMotion Tweens Complete

New Perspectives on Adobe Flash CS4 11

Page 12: Tutorial 6 Creating Special Effects with Graphics and Gradients

XPXPConverting a Bitmap to a Vector Graphic• Reasons to convert a bitmap to a vector graphic:– Bitmap is geometric in nature– Visual effects will be applied to the graphic

• Converting a bitmap to a vector graphic: – Go to Modify Bitmap Trace Bitmap– Specify values and set options– Caveat: some color and quality lost in conversion

New Perspectives on Adobe Flash CS4 12

Page 13: Tutorial 6 Creating Special Effects with Graphics and Gradients

XPXPConverting a Bitmap to a Vector Graphic

New Perspectives on Adobe Flash CS4 13

Page 14: Tutorial 6 Creating Special Effects with Graphics and Gradients

XPXPBitmap Converted to a Vector

New Perspectives on Adobe Flash CS4 14

Page 15: Tutorial 6 Creating Special Effects with Graphics and Gradients

XPXPUsing Gradients• Gradient: gradual blend or transition of colors• Gradients enhance the appearance of objects• Add gradients as fills the way solid colors are added• Linear gradient – Blends colors from one point to another in a straight

line• Radial gradient – Blends colors from a point outwards in a circular

pattern

New Perspectives on Adobe Flash CS4 15

Page 16: Tutorial 6 Creating Special Effects with Graphics and Gradients

XPXPGradient Examples

New Perspectives on Adobe Flash CS4 16

Page 17: Tutorial 6 Creating Special Effects with Graphics and Gradients

XPXPCreating, Editing, and Saving a Gradient• To create a gradient, open the Color panel, click the

Type button, and then click Linear or Radial (or click a preset gradient in the color palette or the Swatches panel)

• To edit a gradient, add or delete a color pointer• To specify a color for a color pointer, select the color

pointer, and then enter the color’s RGB values, hexadecimal value, or click the color picker in the Color panel

• To add a color pointer, click a spot on the gradient definition bar

New Perspectives on Adobe Flash CS4 17

Page 18: Tutorial 6 Creating Special Effects with Graphics and Gradients

XPXPCreating, Editing, and Saving a Gradient• To remove a color pointer, drag it down, away from the

gradient definition bar• To reposition a color pointer, drag it to the left or right

on the gradient definition bar• To save a gradient with the current document, click the

Color panel options menu, and then click Add Swatch

New Perspectives on Adobe Flash CS4 18

Page 19: Tutorial 6 Creating Special Effects with Graphics and Gradients

XPXPColor Panel with the Custom Gradient

New Perspectives on Adobe Flash CS4 19

Page 20: Tutorial 6 Creating Special Effects with Graphics and Gradients

XPXPNew Gradient in Swatches Panel

New Perspectives on Adobe Flash CS4 20

Page 21: Tutorial 6 Creating Special Effects with Graphics and Gradients

XPXPApplying a Gradient Fill• Follow the same process for applying a solid fill• Two options for applying gradient to single object:– Select gradient fill color and draw object on Stage– Use Paint Bucket tool for object already on the Stage

• Lock Fill modifier – Paints one gradient across several objects on the

Stage

New Perspectives on Adobe Flash CS4 21

Page 22: Tutorial 6 Creating Special Effects with Graphics and Gradients

XPXPEffect of Lock Fill Modifier on Gradients

New Perspectives on Adobe Flash CS4 22

Page 23: Tutorial 6 Creating Special Effects with Graphics and Gradients

XPXPGradient Background Added to the Banner

New Perspectives on Adobe Flash CS4 23

Page 24: Tutorial 6 Creating Special Effects with Graphics and Gradients

XPXPFilling Text with a Gradient• You can apply a gradient fill to text• Convert the text to a fill with the Break Apart command– Use command one time for text blocks consisting of

one letter– Use command two times for text blocks consisting of

multiple letters

New Perspectives on Adobe Flash CS4 24

Page 25: Tutorial 6 Creating Special Effects with Graphics and Gradients

XPXPFilling Text with a Gradient

New Perspectives on Adobe Flash CS4 25

Page 26: Tutorial 6 Creating Special Effects with Graphics and Gradients

XPXPTransforming Gradient Fills• Gradient Transform tool: modifies a gradient fill – Selected object with linear gradient has a bounding

box – Selected object with radial gradient has a bounding

circle• Modifiable gradient properties: center, size, direction • How to transform a gradient: – Drag the handles in the bounding box or circle

surrounding the center point

New Perspectives on Adobe Flash CS4 26

Page 27: Tutorial 6 Creating Special Effects with Graphics and Gradients

XPXPGradient’s Radius Increased

New Perspectives on Adobe Flash CS4 27

Page 28: Tutorial 6 Creating Special Effects with Graphics and Gradients

XPXPComparing Publishing Options• FLA format: native file format for Flash documents• SWF file: plays in Flash Player window or browser• Default – (HTML): creates an SWF and HTML file• Static publishing formats: JPEG, GIF, and PNG• Projector file: stand-alone file with .exe extension – Has the Flash Player incorporated into it – Plays the movie in its own window

• Publish Settings dialog box– Used to specify how FLA documents are published

New Perspectives on Adobe Flash CS4 28

Page 29: Tutorial 6 Creating Special Effects with Graphics and Gradients

XPXPPublish Settings• Default options: Flash (.swf) and HTML (.html)– Each file type has an options tab

• Select check box for different formats– New options tab appears for each new type selected– Example: JPEG tab appears if JPEG Image (.jpg)

chosen• New publishing profiles may be saved for later use• New banner will be published as an SWF file– Rationale: banner will be added to an existing Web

page

New Perspectives on Adobe Flash CS4 29

Page 30: Tutorial 6 Creating Special Effects with Graphics and Gradients

XPXPPublish Settings

New Perspectives on Adobe Flash CS4 30

Page 31: Tutorial 6 Creating Special Effects with Graphics and Gradients

XPXPFlash Publish Settings

New Perspectives on Adobe Flash CS4 31

Page 32: Tutorial 6 Creating Special Effects with Graphics and Gradients

XPXPExporting a Flash Document as an Image• Two common image file formats used in Web pages:– JPEG format: best for images that include many colors– GIF format: best for images with fewer colors

• Some export formats in Flash: JPEG, GIF, PNG• Two ways to export images in Flash:– Select options in Publish Settings dialog box– Use the Export Image command

• Logo will be exported as a GIF image

New Perspectives on Adobe Flash CS4 32

Page 33: Tutorial 6 Creating Special Effects with Graphics and Gradients

XPXPExport GIF Dialog Box

New Perspectives on Adobe Flash CS4 33

Page 34: Tutorial 6 Creating Special Effects with Graphics and Gradients

XPXPAdding Flash Graphics to a Web Page• Requirement for using Flash graphics in a Web page:– Graphic file must be incorporated into the page’s

HTML• One simple way to incorporate graphics in HTML:– Publish a movie with the HTML format option

selected• Adding the SWF file to an existing Web page: – Actual Web page must edited – Some editing tools: Adobe Dreamweaver, Notepad

• Use Notepad to edit page displaying banner and logo

New Perspectives on Adobe Flash CS4 34

Page 35: Tutorial 6 Creating Special Effects with Graphics and Gradients

XPXPSample Web Page HTML

New Perspectives on Adobe Flash CS4 35

Page 36: Tutorial 6 Creating Special Effects with Graphics and Gradients

XPXPSample Web Page With Flash Graphics

New Perspectives on Adobe Flash CS4 36