User Guide

Document object 89
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".
Returns
An object for the newly created symbol, or null if it cannot create the symbol.