Adobe 38039336 - Flash CS3 Professional User Manual page 445

User guide
Hide thumbs Also See for 38039336 - Flash CS3 Professional:
Table of Contents

Advertisement

Attribute/parameter
PNG width
PNG height
PNG filename
See also
"Editing Flash HTML settings" on page 440
Create an image map
Flash can generate an image map to show any image and maintain the function of buttons that link to URLs. When
an HTML template includes the
the name of the GIF, JPEG, or PNG file.
1
In your document, select the keyframe to use for the image map and label it
(Window > Properties > Properties). Use any keyframe with buttons that have attached ActionScript 1.0 or 2.0
actions.
getURL
If you don't create a frame label, Flash creates an image map using the buttons in the last frame of the SWF file. This
option generates an embedded image map, not an embedded SWF file.
2
To select the frame to show the image map, do one of the following:
• For PNG or GIF files, label the frame to appear as
• For JPEG, during the publish operation, place the playhead on the frame to be used for display.
3
In an HTML editor, open the HTML template you'll modify.
Save your template.
4
5
Select File > Publish Settings, click Format, select a format for the image map, and click OK.
For example, insert the following code in a template:
$IM
<img src=$IS usemap=$IU width=$IW height=$IH BORDER=0>
This might produce the following code in the HTML document that the Publish command creates:
<map name="mymovie">
<area coords="130,116,214,182" href="http://www.adobe.com">
</map>
<img src="mymovie.gif" usemap="#mymovie" width=550 height=400 border=0>
Creating text and URL reports
The
template variable causes Flash to insert all the text from the current SWF file as a comment in the HTML
$MT
code. This is useful for indexing the content of a SWF file and making it visible to search engines.
The
template variable makes Flash generate a list of the URLs that actions in the current SWF file refer to and
$MU
insert the list at the current location as a comment. This action lets link verification tools detect and verify the links
in the SWF file.
Template variable
$PW
$PH
$PN
template variable, Flash inserts the image map code. The
$IM
#Static
in the frame Property inspector
#Map
.
FLASH CS3
User Guide
variable identifies
$IU
439

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash cs3 professional

Table of Contents