Adobe illustrator 10 Manuale Utente

Pagina di 431
 | 
Back
304  
Adobe Illustrator Help
Preparing Graphics for the Web 
 | 
Back
304  
onunload to trigger the action when the SVG document is removed from a window or 
frame.
onzoom to trigger the action when the zoom level is changed for the document.
onresize to trigger the action when the document view is resized.
onscroll to trigger the action when the document view is scrolled or panned.
In the JavaScript text box, write a JavaScript command that will be triggered by the 
event you selected in step 3.
Press Enter to add the entry to the event list. 
To delete a JavaScript event from the SVG Interactivity palette:
In the SVG Interactivity palette, click on a JavaScript event to highlight it.
Click the Remove Selected Entry button  , or choose Delete Event from the SVG Interac-
tivity palette menu.
To list, add, or remove JavaScript events linked to the file:
In the SVG Interactivity palette, click the Link JavaScript Files button  , or choose 
JavaScript Files from the SVG Interactivity palette menu. 
In the JavaScript Files dialog box, select a JavaScript entry. Click Add to browse for 
additional JavaScript files; click Remove to remove the selected JavaScript entry.
Creating Web graphics with SWF
The Macromedia
®
 Flash
 (SWF) file format is a vector-based graphics file format for the 
creation of scalable, compact graphics for the Web. Since the file format is vector-based, 
the artwork maintains its image quality at different resolutions 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 Web site. You can also 
define graphic elements called symbols in your Illustrator file. When exported, each 
symbol is defined only once in the SWF file; therefore, using symbols can greatly reduce 
the size of a animation. (See 
.)
You can save artwork in SWF format using the Export command and the Save for Web 
command. (See 
.) Keep the following in mind when preparing artwork to be saved in SWF 
format:
To create an animated SWF, place each animation frame on a separate Illustrator layer, 
and choose the AI Layers to SWF Frames option when you export the artwork.
Transparency effects such as blending modes and opacity masks are not exported into 
the SWF format. If you wish to maintain the appearance of a transparency effect, flatten 
the transparency of the art before exporting to SWF format. (See 
.)
Using the symbol stainer tool and symbol styler tool results in larger SWF files. 
Mesh objects and gradients with more than eight stops are rasterized and will appear 
as bitmap-filled shapes. Gradients with fewer than eight stops are exported as 
gradients.