Adobe

Symbols


 
By clicking Submit, you accept the Adobe Terms of Use.
 

  • Create a symbol
  • Place an instance of a symbol
  • Edit a symbol and all of its instances
  • Edit specific symbol instances
  • Create and use component symbols
  • Import and export symbols
  • Create nested symbols
  • 9-slice scaling nested symbols

Re-usable graphic elements in Fireworks are referred to as symbols. Fireworks has three types of symbols: graphic, animation, and button. When you edit the original symbol object, the copied instances automatically change to reflect the edited symbol (unless you break the link between the two).

Symbols are also helpful for creating buttons and animating objects across multiple states.

For more information on symbols, see Understanding styles and symbols in the dev center.

For a video tutorial on using styles and symbols in Fireworks, see www.adobe.com/go/lrvid4033_fw.

    To the top

    Create a symbol

    You can create a symbol from any object, text block, or group, and then store it in the Common Library tab of the Assets panel. From there, you can edit the symbol and place it in your documents.

    Create a symbol from a selected object

    1. Select the object, and select Modify > Symbol > Convert to Symbol.

    2. Type a name for the symbol in the Name box.

    3. Select a symbol type.

    4. To scale the symbol without distorting its geometry, select Enable 9-slice Scaling Guides. (See 9-slice scaling.)

    5. To store the symbol so that it can be used in multiple documents, select the Save To Common Library option.

    6. Click OK to save the symbol.

      The selected object becomes an instance of the symbol, and the Property inspector displays symbol options.

    Create a symbol from scratch

    1. Do one of the following:

      • Select Edit > Insert > New Symbol.

      • Select New Symbol from the Document Library panel Options menu.

    2. Select a symbol type.

    3. To use 9-slice scaling guides to scale the symbol, select the Enable 9-slice scaling guides option, and then click OK.

    4. Create the symbol using the tools in the Tools panel.

    To the top

    Place an instance of a symbol

     Drag a symbol from the Document Library panel to the current document.

    An instance of a symbol on the canvas
    To the top

    Edit a symbol and all of its instances

    When you edit a symbol, all associated instances update automatically to reflect most modifications. Some properties are independent, however. For more information, see Edit specific symbol instances.

    When you break apart the symbol the graphics are grouped by default. Ungroup the graphics (buttons, scrollbar, or others) to modify them. You can later re-group the graphics and convert them to a symbol. If you do not group the graphics before conversion, individual graphics in the symbol become editable.

    Edit a symbol

    1. To enter symbol-editing mode, do one of the following:

      • On the canvas, double-click a symbol instance.

      • Select an instance, and choose Modify > Symbol > Edit Symbol.

      • In the Document Library panel, double-click a symbol icon.

      • (Animation symbols only) Click the Edit button in the Animate dialog box.

    2. Change the symbol as needed.

      Note: If the selected symbol is not enabled for 9-slice scaling, you can edit the symbol within the context itself. You can choose Modify > Symbol > Edit In Place.
      Use 9-slice scaling guides to avoid distortion when resizing the symbol. (See 9-slice scaling.)

    Switch from symbol editing to page editing

    When you edit a symbol, the document panel enters symbol-editing mode. This mode dims other objects on the canvas, letting you quickly modify symbols in the context of the overall page. (One exception is symbols that use 9-slice scaling, which appear alone.)

    To switch from symbol editing to page editing, do either of the following:

    • In the canvas, double-click an empty area.

    • In the tray at the top of the document panel, click the page icon or the back arrow. (If the symbol is nested, the tray also provides access to the containing symbol.)

    Rename a symbol

    1. In the Document Library panel, double-click the symbol name.

    2. In the Convert to Symbol dialog box, change the name, and click OK.

    Duplicate a symbol

    1. In the Document Library panel, select the symbol.

    2. Select Duplicate from the Document Library panel options menu.

    3. Change the name and type of the duplicate if desired, and click OK.

    Change symbol type

    1. Double-click the symbol name in the Library.

    2. Select a different Type option.

    Select all unused symbols in the Document Library panel

     Choose Select Unused Items from the Document Library panel Options menu.

    Delete a symbol and all of its instances

     In the Document Library panel, drag the symbol to the trash icon.

    Swap a symbol

    1. On the canvas, right-click a symbol, and select Swap Symbol.

    2. In the Swap Symbol dialog box, select another symbol from the Document Library, and click OK.

    To the top

    Edit specific symbol instances

    When you double-click an instance to edit it, you're actually editing the symbol itself. To edit only the current instance, you must break the link between the instance and the symbol. This permanently breaks the relationship between the two. Any future edits you make to the symbol won't be reflected in the former instance.

    Button symbols have several features that let you retain symbol-instance relationships while assigning unique button text and URLs to each instance.

    To adjust JavaScript behaviors for component symbols, edit values in the Symbol Properties panel. To add customizable properties to that panel, you must edit the JavaScript file associated with the symbol.

    Note: Height and width attributes cannot be set for a component using JavaScript.

    Break symbol links

    1. Select the instance.

    2. Select Modify > Symbol > Break Apart.

      The selected instance becomes a group. The symbol in the Document Library panel is no longer associated with that group. After separation from the symbol, a former button instance loses its button symbol characteristics and a former animation instance loses its animation symbol characteristics.

    Edit an instance without breaking the symbol link

    1. Select the instance.

    2. Modify instance properties in the Property inspector.

      These instance properties can be modified without affecting the symbol and other instances:

      • Blending mode

      • Opacity

      • Filters

      • Width and height

      • x and y coordinates

    To the top

    Create and use component symbols

    Component symbols are graphic symbols that can be intelligently scaled and given specific attributes using a JavaScript (JSF) file. They are also referred to as Rich Symbols. Modifying an instance with the Properties panel affects the symbol and all other instances. However, modifying parameters in the Symbol Properties panel (Window > Symbol Properties) affects only the selected instance.

    Fireworks includes a library of predesigned component symbols; you can customize these symbols to match the appearance of a particular website or user interface.

    Add a component symbol to a document

    1. Select Common Library from the Window menu.

    2. To use a symbol, drag and drop the symbol from the Common Library panel to the Fireworks canvas.

    Adjust component symbol properties

    1. On the canvas, select the symbol.

    2. In the Symbol Properties panel (Window > Symbol Properties), adjust parameters such as state, label, and color.

      To create interactive buttons for HTML-based web and software prototypes, see Interactive slices.

    Create a component symbol

    For more information, see the article Using rich symbols in Fireworks, or the video tutorial at www.wonderhowto.com.

    1. Create an object with attributes that you want to customize.

      This symbol could have the bullet color and the bullet number as customizable options.
    2. When creating the object, customize the names of the features that you want to be editable by typing a name into the Layers panel. Ensure that you use the name Label for the text layer, maintaining the upper case for the first L. This name is used in the JavaScript file.

      Note: To avoid JavaScript errors, do not include any spaces in feature names. For example, use “number_label,” but not “number label”.
    3. Select the object, and then select Modify > Symbol > Convert to Symbol.

    4. Type a name for the symbol in the Name box.

    5. Select Graphic as the symbol type, select Save to Common Library, and then click OK.

    6. At the prompt, save new symbol to the default Custom Symbols folder, or create another folder at the same level as the default folder.

      Note: Component symbols must be saved in a folder within the Common Library.

      After being saved, the symbol is removed from the canvas and appears in the Common Library.

    7. From the Commands menu, select Create Symbol Script.

    8. Click the browse button in the upper right corner of the panel and browse to the symbol PNG file. The default location is as follows:

      • For Microsoft® Windows® XP: <user settings>\Application Data\Adobe\Fireworks CS5\Common Library\Custom Symbols

      • For Windows Vista®: \Users\<username>\AppData\Roaming\Adobe\Fireworks CS5\Common Library\Custom Symbols

      • For Mac® OS: <user name>/Application Support/Adobe/Fireworks CS5/Common Library/Custom Symbols

    9. Click the plus button to add an element name.

    10. In the Element Name box, select the name of the element to customize from the menu.

    11. In the Attribute box, select the name of the attribute you want to customize. For example, to customize the text in the label, select textChars.

      Note: For more information about these attribute options see Extending Fireworks.
    12. In the Property Name field, type the name of the customizable property, for example, “Label” or “Number.” This property name appears in the Symbol Properties panel.

    13. In the Value field, type a default value for the property used when an instance of the symbol is first placed into a document.

    14. Add additional elements as needed.

    15. Click Save to save the selected options and create a JavaScript file.

    16. Select Reload from the Common Library panel Options menu to reload the new symbol.

      After creating the JavaScript file, you can create an instance by dragging the symbol to the canvas. Then you can change its attributes in the Symbol Properties panel.

      Note: If you remove or rename an object that is referenced by the script, The Symbol Properties panel reports errors.

    Save an existing symbol as a component symbol

    1. Select a symbol in the Document Library panel.

    2. Select Save to Common Library from the Document Library panel Options menu.

    3. Create a JavaScript file to control the symbol properties.

    Create editable symbol parameters using JavaScript

    When you save a component symbol, Fireworks saves a PNG file in the following default folders:

    • (Windows XP) <user settings>\Application Data\Adobe\Fireworks CS5\Common Library\Custom Symbols

    • (Windows Vista) \Users\<user name>\AppData\Roaming\Adobe\Fireworks CS5\Common Library\Custom Symbols

    • (Mac OS) <user name>/Application Support/Adobe/Fireworks CS5/Common Library/Custom Symbols

    To create a component symbol, a JavaScript file must be created and saved with a .JSF extension in the same location and with the same name as the symbol. For example, mybutton.graphic.png would have a JavaScript file named mybutton.jsf.

    The Create Symbol Script panel allows non-programmers to assign some simple symbol attributes and create the JavaScript file automatically. To open this panel, select Create Symbol Script from the Commands menu.

    Create the JavaScript file

    Two functions in the JavaScript file must be defined to add editable parameters to the symbol:

    • function setDefaultValues() – defines the parameters that can be edited and the default values of these parameters.

    • function applyCurrentValues() – applies the values entered through the Symbol Properties panel to the graphic symbol.

      The following is a sample .JSF file for creating a custom symbol:

      function setDefaultValues() 
      { 
          var currValues = new Array(); 
      //to build symbol properties 
          currValues.push({name:"Selected", value:"true", type:"Boolean"}); 
          Widget.elem.customData["currentValues"] = currValues; 
      } 
      function applyCurrentValues() 
      { 
          var currValues = Widget.elem.customData["currentValues"]; 
      // Get symbol object name 
          var Check = Widget.GetObjectByName("Check"); 
          Check.visible = currValues[0].value; 
      } 
      switch (Widget.opCode) 
      { 
          case 1: setDefaultValues(); break; 
          case 2: applyCurrentValues(); break; 
          default: break; 
      } 
      This sample JavaScript shows a component symbol that can change colors: 
      function setDefaultValues() 
      { 
          var currValues = new Array(); 
      //Name is the Parameter name that will be displayed in the Symbol Properties Panel 
      //Value is the default Value that is displayed when Component symbol loads first time. In this 
      case, Blue will be the default color when the Component symbol is used. 
      //Color is the Type of Parameter that is displayed. Color will invoke the Color Popup box 
      in the Symbol Properties Panel. 
          currValues.push({name:"BG Color", value:"#003366", type:"Color"}); 
          Widget.elem.customData["currentValues"] = currValues; 
      } 
      function applyCurrentValues() 
      { 
          var currValues = Widget.elem.customData["currentValues"]; 
      //color_bg is the Layer name in the PNG that will change colors 
          var color_bg = Widget.GetObjectByName("color_bg"); 
          color_bg.pathAttributes.fillColor = currValues[0].value; 
      } 
      switch (Widget.opCode) 
      { 
          case 1: setDefaultValues(); break; 
          case 2: applyCurrentValues(); break; 
          default: break; 
      }

      To better understand how the .JSF file can be used to customize symbol properties, explore the sample components included with the software.

    To the top

    Import and export symbols

    The Document Library panel stores symbols that you create or import in the current document. The Document Library panel is specific to the current document; to use symbols from one library in another document, import, export, copy, or drag them.

    Import one or more prepared symbols from a Fireworks symbol library

    You can import prepared animation symbols, graphic symbols, and button symbols, as well as navigation bars and multi-symbol themes.

    1. Open a Fireworks document.

    2. Select a folder in the Common Library panel.

      You can also import symbols from previously exported library PNG files located on your hard drive, on a CD, or on a network.

    Import symbols from another file into the current document

    1. Select Import Symbols from the Document Library panel Options menu.

    2. Navigate to the PNG folder containing the file, select the file, and click Open.

    3. Select the symbols to import and click Import.

      The imported symbols appear in the Document Library panel.

    Import a symbol by dragging and dropping or copying and pasting

     Do one of the following:
    • Drag a symbol instance from the document containing the symbol into the destination document.

    • Copy a symbol instance in the document containing the symbol, then paste it into the destination document.

      The symbol is imported into the Document Library panel of the destination document and retains a relationship to the symbol in the original document.

    Export symbols

    1. Select Export Symbols from the Document Library panel Options menu.

    2. Select the symbols to export, and click Export.

    3. Navigate to a folder, type a name for the symbol file, and click Save.

      Fireworks saves the symbols in a single PNG file.

    Update exported symbols and instances in multiple documents

    Imported symbols maintain their link to their original symbol document. You can edit the original symbol document and then update the target documents to reflect the edits.

    1. In the original document, double-click an instance, or select an instance and select Modify > Symbol > Edit Symbol.

    2. Modify the symbol.

    3. Save the file.

    4. In the document into which the symbol was imported, select the symbol in the Document Library panel.

    5. Select Update from the Document Library panel Options menu.

      Note: To update all imported symbols, select all the symbols in the Document Library panel and select Update.
    To the top

    Create nested symbols

    Symbols created within symbols are referred to as nested symbols.
    1. Create an object on a page using the vector tool. For example, create a rectangle using the vector tool.

    2. Right-click the rectangle, and select Convert To Symbol.

    3. In the Convert To Symbol dialog box, do the following:

      1. Enter a name for the symbol. For example, call it Symbol A.

      2. If you are planning to apply 9-slice scaling to the symbol, select Enable 9-slice Scaling Guides.

    4. Double-click the “+” icon in the center of the symbol.

    5. Repeat steps one through four to create another symbol, Symbol B. Because Symbol B is created within Symbol A, Symbol B is a nested symbol of Symbol A.
      Note: You can create more than one nested symbol.
    To the top

    9-slice scaling nested symbols

    You can create symbols within a symbol. Such symbols, called nested symbols, can be scaled individually.

    Ensure the following before you try to 9-slice scale a symbol.
    • Select Enable 9-slice scaling guides when creating the symbol.

    • Ensure that you are in the Edit mode of the symbol that you want to scale. Double click the “+” icon on the inner symbol to move to its edit mode.

      When transforming nested symbols based on the 9-Slice scale setting, you can scale nested symbols individually. For example, consider a symbol that is nested three levels — Symbol A inside Symbol B, which is inside Symbol C. You can scale Symbol A (inner most) and symbol B (Intermediate) as per their respective 9-Slice guides.Ensure that you are in the Edit mode of the inner symbol to use 9-slice scaling. In the edit- in-place mode, 9-slice scaling for nested symbols can be viewed only through the Library panel. Double-clicking a symbol on the canvas does not display the 9-Slice scale guides.

    Enable 9-slice scaling for an existing symbol

    1. Move to the view where you created the symbol.

    2. Select the Symbol in the Document Library panel, and click Symbol Properties.
      Note: If the Document Library Panel is not visible, select Window > Document Library to display the panel.
    3. In the Convert To Symbol dialog box, select Enable 9-slice scaling guides.

    More Help topics

    Create button symbols

    Create animation symbols

    Legal Notices   |   Online Privacy Policy