MACROMEDIA FLASH MX 2004-USING FLASH Use Manual page 332

Hide thumbs Also See for FLASH MX 2004-USING FLASH:
Table of Contents

Advertisement

Attribute/parameter
JPEG height
JPEG filename
PNG width
PNG height
PNG filename
Creating 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
image map code. The
To create an image map:
In your Flash document, select the keyframe to be used for the image map and label it #Map in
1.
the frame Property inspector (select Window > Properties if the Property inspector is not
visible). You can use any keyframe with buttons that have attached Get URL actions.
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
Flash SWF file.
To select the frame to show the image map, do one of the following:
2.
For PNG or GIF files, label the frame to appear as #Static.
For JPEG, during the publish operation, place the playhead on the frame to be used
for display.
In an HTML editor, open the HTML template you'll modify. Flash stores HTML templates
3.
in the following location: <boot drive>:\Program Files\Macromedia\Flash MX 2004\
<language>\First Run\HTML.
Save your template.
4.
Select File > Publish Settings, click the Format tab, and select a format for the image map: GIF,
5.
JPEG, or PNG.
Click OK to save your settings.
6.
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 created by the Publish
command:
<map name="mymovie">
<area coords="130,116,214,182" href="http://www.macromedia.com">
</map>
<img src="mymovie.gif" usemap="#mymovie" width=550 height=400 border=0>
332
Chapter 15: Publishing
variable identifies the name of the GIF, JPEG, or PNG file.
$IU
Template variable
$JH
$JN
$PW
$PH
$PN
template variable, Flash inserts the
$IM

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents