Document.convertlinestofills(), Document.converttosymbol() – Adobe Extending Flash Professional CS4 User Manual
Page 107

85
EXTENDING FLASH CS4 PROFESSIONAL
Document object
fl.getDocumentDOM().close();
The following example closes the current document without saving changes:
fl.getDocumentDOM().close(false);
document.convertLinesToFills()
Availability
Flash MX 2004.
Usage
document.convertLinesToFills()
Parameters
None.
Returns
Nothing.
Description
Method; converts lines to fills on the selected objects.
Example
The following example converts the current selected lines to fills:
fl.getDocumentDOM().convertLinesToFills();
document.convertToSymbol()
Availability
Flash MX 2004.
Usage
document.convertToSymbol(type, name, registrationPoint)
Parameters
type
A string that specifies the type of symbol to create. Acceptable values are
"movie clip"
,
"button"
, and
"graphic"
.
name
A string that specifies the name for the new symbol, which must be unique. You can submit an empty string to
have this method create a unique symbol name for you.
registration point
Specifies the point that represents the 0,0 location for the symbol. Acceptable values are:
"top
left"
,
"top center"
,
"top right"
,
"center left"
,
"center"
,
"center right"
,
"bottom left"
,
"bottom
center"
, and
"bottom right"
.