The Fireworks object is a global object, which you can use to set or retrieve properties that relate to the current operating environment. (The App object that was used in Fireworks 3 is supported for backward compatibility, but its use is deprecated in favor of the Fireworks object.)
The following table lists the properties of the Fireworks object, along with their data types and, where appropriate, acceptable values and notes. Read-only properties are marked with a bullet (•).
Note: For information on how to format nonstandard data types, such as rectangle or point, see Formatting nonstandard data types.
Refer to the Fireworks object by using fw.propertyName or fireworks.propertyName. Note that fireworks must be lowercase.
| Property | Data type | Notes |
|---|---|---|
|
|
string |
The active tool in the application. |
|
|
float |
The scaling (zoom value) of the active view. 1.0=100% of the normal view. |
|
|
string |
The path to the Batch Code directory, which is expressed as file://URL. |
|
|
string |
The path to the directory that contains the Fireworks application, which is expressed as file://URL. |
|
|
string |
The path to the Export Settings directory, which is expressed as file://URL. In Fireworks, this folder is stored on a per-user basis on multiuser systems. Even on single-user systems, this folder is not inside the Fireworks installation directory. |
|
|
string |
The path to the URL Libraries directory, which is expressed as file://URL. In Fireworks, this folder is stored on a per-user basis on multiuser systems. Even on single-user systems, this folder is not inside the Fireworks installation directory. |
|
|
string |
The path to the directory that contains the Fireworks help file, which is expressed as file://URL. |
|
|
string |
The path to the HTML Code directory, which is expressed as file://URL. |
|
|
string |
The path to the Commands directory, which is expressed as file://URL. |
|
|
string |
The path to the JSExtensions directory, which is expressed as file://URL. |
|
|
string |
|
|
|
string |
|
|
|
string |
The name of the application ( |
|
|
string |
The path to the Patterns directory, which is expressed as file://URL. |
|
|
string |
The path to the Preferences directory, which is expressed as a file://URL. |
|
|
string |
The path to the Presets directory, which is expressed as file://URL. In Fireworks, this folder is stored on a per-user basis on multiuser systems. Even on single-user systems, this folder is not inside the Fireworks installation directory. |
|
|
string |
The path to the Settings directory, which is expressed as file://URL. |
|
|
string |
The path to the application's Auto Shapes directory, which is expressed as file://URL. |
|
|
string |
The path to the application's Auto Shape Tools directory, which is expressed as file://URL. |
|
|
string |
The path to the Styles directory, which is expressed as file://URL. In Fireworks, this folder is stored on a per-user basis on multiuser systems. Even on single-user systems, this folder is not inside the Fireworks installation directory. |
|
|
string |
The path to the SWF Commands directory, which is expressed as a file://URL. |
|
|
string |
The path to the Libraries directory, which is expressed as file://URL. |
|
|
string |
The path to the Textures directory, which is expressed as file://URL. |
|
|
string |
The path to the Xtras directory, which is expressed as file://URL. |
|
|
string |
The string that currently appears in the Batch Progress dialog box. Set this property to change the string being displayed. Use with |
|
|
string |
The path to the directory of the currently running script, which is expressed as a file://URL (or could be This path goes to the directory in which the script resides, not a full file path to the script itself (it excludes the script's filename). |
|
|
string |
The filename of the currently running script (or could be This name is the script's filename, not the full path. |
|
dialogs • |
object |
Provides access to an instance of the Dialogs class, which opens specific dialog boxes (for more information, seeDialogs object.) |
|
|
Boolean |
If set to |
|
|
array |
Array of the current open Document objects (for more information, see Document object). If no document is open, it returns an array of length zero. |
|
|
array |
Array of the current open Document objects (for more information, see Document object). If no document is open, returns an array of length zero. |
|
|
float |
A fixed value of 0.55229187012 used to calculate the distance between a point and its predecessor/successor for a perfect circle. For example, for a circle with a radius of 100 pixels, the predecessor/successor is |
|
|
Boolean |
If set to |
|
|
object |
The FilesClass object used to perform file operations (open, close, delete, and so on). |
|
|
string |
Returns the location of the SWF file. |
|
|
color |
Returns the end color for the background gradient. This function is only useful for the Windows platform. |
|
|
color |
Returns the start color for the background gradient. This function is only useful for the Windows platform. |
|
|
object |
History panel object. There are no DOM properties for the History panel, only API calls. For more information, see History panel functions. |
|
|
integer |
Returns whether the operating system is connected to the Internet. The Start Page has a dynamic content panel that loads content from the Internet. The Start Page queries this property before attempting to download the dynamic content. |
|
|
array |
Array of recent open files. If there are no open files, returns an array length of zero. |
|
|
array |
Array of recent open file names. If there are no open files, returns an array length of zero. |
|
|
string |
The string |
|
|
integer |
The first number (x) that appears in the Batch Progress dialog box, in the "File x of y" field. Set this property to change the number. |
|
|
integer |
The second number (y) that appears in the Batch Progress dialog box, in the "File x of y" field. Set this property to change the number. |
|
|
rectangle |
The size of the main screen on this computer, in pixels. Useful for positioning windows or panels. |
|
|
array |
Array of the selected objects in the active document. If nothing is selected, it returns an array of length zero. If no document is open, it returns |
|
|
object |
If a single item is selected and that item is a mask, this property returns an ElementMask object (for more information, see ElementMask object); otherwise, it returns |
|
|
array |
Array of the Style object that is currently loaded in the Style panel (for more information, see Style object). |
|
|
integer |
Insertion index into the current active text object. If there is no text selected, returns a value of -1. |
|
|
integer |
Insertion length into the current active text object. If there is no text selected, returns a value of -1. |
|
|
string |
The default text encoding for any text file that the JavaScript interpreter generates. Use |
|
|
string |
The path to the user-level Commands directory, which is expressed as a file://URL. In Fireworks, this folder is stored on a per-user basis on multiuser systems. Even on single-user systems, this folder is not inside the Fireworks installation directory. |
|
|
string |
The path to the user's Auto Shapes directory, which is expressed as a file://URL |
|
|
string |
The path to the user's Auto Shape Tools directory, which is expressed as a file://URL. |
|
|
string |
The path to the user's Symbol Libraries, which is expressed as file://URL. |
|
|
string |
The path to the user-level SWF Commands directory, which is expressed as a file://URL. In Fireworks, this folder is stored on a per-user basis on multiuser systems. Even on single-user systems, this folder is not inside the Fireworks installation directory. |
|
|
Boolean |
Determines whether the JavaScript interpreter should output XHTML formatted files or HTML formatted files; XHTML ( |
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_22.htm