Flash CS3  |  Go to CS4 Help

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 $IM template variable, Flash inserts the image map code. The $IU variable identifies 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 #Map in the frame Property inspector (Window > Properties > Properties). Use any keyframe with buttons that have attached ActionScript 1.0 or 2.0 getURL 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 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 #Static .

    • 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.
  4. Save your template.
  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>

Comments

Comments are no longer accepted for Flash CS3. Flash CS4 is the current version. To discuss Flash CS3, please use the Adobe forum.

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flash/9.0/UsingFlash/WSd60f23110762d6b883b18f10cb1fe1af6-7bb0.html