Adobe 38039927 - Fireworks CS3 - PC Extended User Manual page 296

Extending fireworks
Hide thumbs Also See for 38039927 - Fireworks CS3 - PC:
Table of Contents

Advertisement

If this list is not defined, all default properties are added to the attribute list (where applicable). If defined, only those
listed will be provided.
Note:
defaultProperties
prevent a style from being created for the object if it has style properties.
Example
defaultProperties = ["x", "y", "width", "height"];
namespace
Object. The namespace to be used in the MXML tag. This object should contain one key representing the namespace
prefix whose value is the namespace URI. If this is not provided, the default namespace of
Example
namespace = {ns:"http://www.example.com/2007/mxml"};
textOnly
String. If defined, this represents the entire MXML output to be used for the export. If this is defined, no other
properties need to be set within the definition. Any properties set are ignored.
Example
textOnly = "<mx:ColorPicker id=\"cp\" selectedColor=\"#FFFFFF\"/>";
ignored
Boolean. If true, the object is completely ignored during export; no MXML is created and no image is exported. If
this is set to true, no other properties need to be set within the definition. Any properties set are ignored.
Note: The
property has precedence over
ignored
Example
ignored = true;
Example script
The following is an example of a custom symbol script using a custom definition object to determine the output
created by the Fireworks MXML and Images export.
function setDefaultValues() {
var currValues = new Array();
currValues.push({ name:"name",
currValues.push({ name:"label",
currValues.push({ name:"color",
currValues.push({ name:"enabled", type:"Boolean", value:"true"
Widget.elem.customData["currentValues"] = currValues;
Widget.elem.customData["flexClassName"] = "Star";
cannot be style properties. Omitting
textOnly
type:"Text",
type:"Text",
type:"Color",
from
styleName
defaultProperties
.
value:"star name" });
value:"Star"
value:"#FFFFFF"
ADOBE FIREWORKS CS3
Extending Guide
will not
is used.
mx
});
});
});
292

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fireworks cs3

Table of Contents