Creating animations, About flash graphics – Adobe Illustrator CS4 User Manual

Page 388

Advertising
background image

381

USING ADOBE ILLUSTRATOR CS4

Web graphics

onmousedown

Triggers the action when the mouse button is pressed down over an element.

onmouseup

Triggers the action when the mouse button is released over an element.

onclick

Triggers the action when the mouse is clicked over an element.

onmouseover

Triggers the action when the pointer is moved onto an element.

onmousemove

Triggers the action while the pointer is over an element.

onmouseout

Triggers the action when the pointer is moved away from an element.

onkeydown

Triggers the action when a key is pressed down.

onkeypress

Triggers the action while a key is pressed down.

onkeyup

Triggers the action when a key is released.

onload

Triggers the action after the SVG document has been completely parsed by the browser. Use this event to call

one-time-only initialization functions.

onerror

Triggers the action when an element does not load properly or another error occurs.

onabort

Triggers the action when the page loading is stopped before the element is completely loaded.

onunload

Triggers the action when the SVG document is removed from a window or frame.

onzoom

Triggers the action when the zoom level is changed for the document.

onresize

Triggers the action when the document view is resized.

onscroll

Triggers the action when the document view is scrolled or panned.

Creating animations

About Flash graphics

The Flash (SWF) file format is a vector-based graphics file format for scalable, compact graphics for the web.
Because the file format is vector-based, the artwork maintains its image quality at any resolution and is ideal for the
creation of animation frames. In Illustrator, you can create individual animation frames on layers and then export the
image layers into individual frames for use on a website. You

can also define symbols in an Illustrator file to reduce the

size of an animation. When exported, each symbol is defined only once in the SWF file.

You can save artwork as a SWF file by using the Export command or the Save For Web & Devices command. Benefits
of each include:

Export (SWF) command

Provides the most control over animation and bitmap compression.

Save For Web & Devices command

Provides more control over the mix of SWF and bitmap formats in a sliced layout.

This command offers fewer Image options than the Export (SWF) command, but uses the Export command’s last-used
settings. (See “

SWF optimization options (Illustrator)

” on page 398.)

Keep the following information in mind when preparing artwork to save as SWF:

To keep the file size as small as possible when using symbols, apply effects to the symbol in the Symbols panel rather
than to symbol instances in the artwork.

Using the Symbol Stainer and Symbol Styler tools results in larger SWF files because Illustrator must create a copy
of each symbol instance to maintain their appearances.

Advertising