Accessibility

Create a sitemap icon using reusable rich symbols


Table of Contents

Create the script

Now we’ll create the script:

  1. Choose Commands > Create Symbol Script.
  2. In the Create Symbol Script dialog box, click the "..." button in the top-right corner, locate the symbol you saved to the Common Library/mysitemap folder, and then click OK.

    Note: In Windows XP, the Common Library is located in the Documents and Settings/<user account>/Application Data/Adobe/Fireworks CS3 folder. In Windows Vista, the Common Library is located in the Users/<user account>/AppData/Roaming/Adobe/Fireworks folder. In Mac OS, it’s in the Users/<user account>/Library/Application Support/Adobe/Fireworks CS3 folder.

  3. Click the [+] button three times to add three new properties (see Figure 3).

     

    add three properties

    (+) view larger
    Figure 3: Click the [+] button three times to add three properties.

  4. Select the first property and give it the following attributes:
    • For Element Name, choose docType.
    • For Attribute, choose textChars.
    • For Property Name, enter Doc Type Label.
    • For Value, enter {}, which is a generic identifier for code.

    Note: For the Value field, we need to add a default value so something shows up when you drag-and-drop the symbol onto the canvas.

  5. Select the second property and give it the following attributes:
    • For Element Name, choose docTitle.
    • For Attribute Name, choose textChars
    • For the Property Name, enter Doc Title Label.
    • For Value, enter doc-title.
  6. Select the third property and give it the following attributes:
    • For Element Name, choose docBg.
    • For Attribute, choose fillColor.
    • For Property Name, enter Color.
    • For Value, enter #999999, which is a medium gray.

    When you’re finished, the Create Symbol Script dialog box should look like this (see Figure 4):

    Create Symbol Script dialog box

    (+) view larger
    Figure 4: The Create Symbol Script dialog box showing the values for each of the three properties.

  7. Click Save, and then click OK. Fireworks generates the JavaScript for you automatically.