Creating animations, About flash graphics – Adobe Illustrator CC 2015 User Manual

Page 470

Advertising
background image

465

Web graphics

Last updated 6/5/2015

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.

More Help topics

Optimize an image for the web

Save in SVG format

About raster effects

Modify or delete an effect

Best practices for creating web graphics

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) commandProvides 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)

.)

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
This manual is related to the following products: