Macromedia fireworks mx 2004-extending fireworks User Manual

Page of 296
158
Chapter 5:  Fireworks JavaScript API
Description
E
xtracts the component elements from the selected symbol and places copies of those elements in 
the document.
This function is similar to the 
dom.importSymbol
 API. 
dom.importSymbol
 places an instance of 
a symbol in your document—for example, when you select Edit > Libraries > Buttons, and 
dom.importSymbolButNotAsAlias
 extracts the component elements from the selected symbol 
and places copies of those elements in the document. 
dom.importSymbolButNotAsAlias
 does 
not place in an instance in the document.
dom.inLaunchAndEdit()
Availability
Fireworks MX.
Usage
dom.inLaunchAndEdit()
Arguments
None. 
Returns
A Boolean value: 
true
 if opened by a launch-and-edit operation; 
false
 otherwise.
Description
Specifies whether document was opened by a launch-and-edit operation.
dom.insertPointInPath()
Availability
Fireworks 3.
Usage
dom.insertPointInPath(contourIndexptToInsertBeforetParameter
controlPointFirstmainPointcontrolPointLast)
Arguments
contourIndex
  A zero-based index that specifies the contour into which the Bézier point is 
inserted. For paths with multiple contours, the contours are in an arbitrary order.
ptToInsertBefore
  A zero-based index that specifies where the new point should be placed 
on the path. The new point is appended in front of the point that this integer represents: To 
add a point to the beginning of the path, pass 
0
; to add a point to the end of the path, pass a 
large number.
tParameter
  A floating-point value between 0 and 1 that specifies where to insert the new point 
in the Bézier segment.
controlPointFirst
, mainPoint
, and 
controlPointLast
  Points that specify the x,y 
coordinates of the preceding control point, the main point, and the following control point of the 
new point (see 
).