
191
EXTENDING FIREWORKS
The Fireworks Object
Las
t
up
d
a
ted
12/8/2009
documents
•
array
Array of the current open Document objects (for more
information, see “
The Document object
” on page
27). If no
document is open, returns an array of length zero.
ellipseBCPConst
•
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
100*fw.ellipseBCPConst
pixels
away from the point itself.
errorReportingOK
Boolean
If set to
true
, Fireworks will allow posting an error while a
script is running
.
files
•
object
The FilesClass object used to perform file operations (open,
close, delete, and so on).
getDynamicSWFURL
•
string
Returns the location of the SWF file.
getEndBackgroundColor
•
color
Returns the end color for the background gradient. This
function is only useful for the Windows platform.
getStartBackgroundColor
•
color
Returns the start color for the background gradient. This
function is only useful for the Windows platform.
historyPalette
•
object
History panel object. There are no DOM properties for the
History panel, only API calls. For more information, see “
History
panel functions
” on page
318.
isConnectedToInternet
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.
mruRecentFilesList
•
array
Array of recent open files. If there are no open files, returns an
array length of zero.
mruRecentFileNames
•
array
Array of recent open file names. If there are no open files,
returns an array length of zero.
platform
•
string
The string
"mac"
if Fireworks is running on the Macintosh, or
"win"
if running on Windows.
progressCountCurrent
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.
progressCountTotal
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.
screenRect
•
rectangle
The size of the main screen on this computer, in pixels. Useful
for positioning windows or panels.
selection
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
null
.
selectedMask
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
” on page
252); otherwise, it returns
null
.
styles
•
array
Array of the Style object that is currently loaded in the Style
panel (for more information, see “
Style object
” on page
266).
Property
Data type
Notes
Содержание 65011817 - Fireworks CS4 - Mac
Страница 1: ...Extending ADOBE FIREWORKS CS4...