Element is an abstract or base class; nothing of class Element ever exists. However, it is useful for simplifying the other class descriptions. Read-only properties are marked with a bullet (•).
| Property | Data type | Notes |
|---|---|---|
|
|
string |
Acceptable values are |
|
|
struct |
Assign any objects (array, integer, string, and so on). |
|
|
object |
EffectList object (for more information, see EffectList object). |
|
|
float |
Read-only in the base class; other properties or API calls are used to resize specific types of elements. |
|
|
Boolean |
Confirms whether the element is an Auto Shape. |
|
|
float |
Can round to an integer. |
|
|
object |
ElementMask object (for more information, see ElementMask object). Returns |
|
|
string |
Can be |
|
|
float |
Acceptable values, 0 to 100, represent percent opacity. |
|
|
float |
Leftmost space occupied by the pixels (not the left location of the bounding box). |
|
|
float |
Top space occupied by the pixels (not the top location of the bounding box).> |
|
|
float |
Can round to an integer. |
|
|
rect |
Rectangle of the area occupied by the pixels. For example, the pixelRect of a text object is smaller than what the property inspector reports, since the actual pixels are inside the bounding box. |
|
|
Boolean |
If set to |
|
|
float |
Read-only in the base class; other properties or API calls are used to resize specific types of elements. |
The following table lists the methods of the Element object, along with their parameters.
| Method | Parameter | Definition |
|---|---|---|
|
|
root |
The root parameter is a string value that is prefixed to each line of output. |
Group is a subclass of the base class Element and contains the following properties in addition to those in Element (for more information, see Element object).
| Property | Data type | Notes |
|---|---|---|
|
|
array |
Array of control points defined for the Auto Shape object. |
|
|
array |
Array of Element objects in the group (for more information, see Element object). |
|
|
string |
Acceptable value is |
|
|
string |
The body of code in the JavaScript file that defines the Auto Shape object. |
|
|
string |
Can be one of the following:
|
The following table lists the methods of the Group object, along with their parameters.
| Method | Parameter | Definition |
|---|---|---|
|
|
string |
Generates JavaScript code for creating an Auto Shape. You can specify a string to prefix each line of output. |
|
|
point |
Changes an object to the new coordinates after an Auto Shape is transformed (scaled, skewed, or rotated) so that the Auto Shape object contains the new location. |
|
|
string |
Call this to receive notification of the string specifying a Fireworks event. Returns the total number of events registered after adding the specified event. |
|
|
none |
Undoes the previous transformation. |
|
|
point |
Converts a transformed (scaled, skewed, or rotated) SmartShape object's space into global space. (For more information, see |
|
|
none |
Call this to stop receiving notification of all previously registered events. |
|
|
string |
Call this to stop receiving notification of a single previously registered event. |
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/fireworks/8/fwextending/fw_02_33.htm