Adobe Fireworks CS3 Benutzerhandbuch

Seite von 369
ADOBE FIREWORKS CS3
User Guide
191
7
Click the browse button in the upper right corner of the panel and browse to the symbol PNG file. This is saved 
in the <user settings>\Application Data\Adobe\Fireworks 9\Common Library\Custom Symbols (Windows), or 
<user name>/Application Support/Adobe/Fireworks9/Common Library/Custom Symbols (Macintosh) directory, 
by default.
8
Click the plus button to add an element name.
9
Add the name of the element that you want to customize. For example, type “label” into the Element Name field 
if you want to customize the text field named “label.”
10
In the Attribute field, select the name of the attribute you want to customize. For example, to customize the text 
in the label, select the textChars attribute, or to customize the fill color of an object, select the fillColor attribute.
Note: For more information about these attribute options see Extending Fireworks.
11
In the Property Name field, type the name of the customizable property, for example, “Label” or “Number.” This 
is the property name that appears in the Symbol Properties panel.
12
In the Value field, type in a default value for the property. This will be the default value when an instance of the 
symbol is first placed into a document.
13
Add additional elements as needed.
14
Click Save to save the selected options and create a JavaScript file.
15
Select Reload from the Common Library panel Options menu to reload the new symbol.
After the JavaScript file has been created, you can create a new instance of the symbol by dragging it to the canvas, 
and then you can update its attributes by changing them in the Symbol Properties panel.
Editing symbol properties using the Symbol Properties panel
Note: After creating the JavaScript file, errors will be generated by the Symbol Properties panel if you remove or rename 
an object within the symbol that is referenced by the script.
To save an existing symbol as a rich symbol:
1
Select a symbol in the Library panel.
2
Select Save to Common Library from the Library panel Options menu.
3
Create a JavaScript file to control the symbol properties. 
Creating editable symbol parameters using JavaScript:
When a symbol is saved as a rich symbol, a PNG file is saved by default in the <user settings>\Application 
Data\Adobe\Fireworks 9\Common Library\Custom Symbols folder (Windows), or <user name>/Application 
Support/Adobe/Fireworks9/Common Library/Custom Symbols (Macintosh).
To create a rich 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.