Symbolitem.scalinggrid, Symbolitem.scalinggridrect – Adobe Extending Flash Professional CS5 User Manual
Page 453
431
EXTENDING FLASH PROFESSIONAL
SymbolItem object
Last updated 5/2/2011
Parameters
outputURI
A string, expressed as a file:/// URI, that specifies the SWF file to which the method will export the symbol.
The outputURI must reference a local file. Flash does not create a folder if outputURI doesn’t exist.
Returns
Nothing.
Description
Method; exports the symbol item to a SWF file.
Example
The following example exports an item in the library to the
my.swf
file in the tests folder:
fl.getDocumentDOM().library.items[0].exportSWF("file:///c|/tests/my.swf");
symbolItem.scalingGrid
Availability
Flash 8.
Usage
symbolItem.scalingGrid
Description
Property; a Boolean value that specifies whether 9-slice scaling is enabled for the item.
Example
The following example enables 9-slice scaling for an item in the library:
fl.getDocumentDOM().library.items[0].scalingGrid = true;
See also
symbolItem.scalingGridRect
Availability
Flash 8.
Usage
symbolItem.scalingGridRect
Description
Property; a Rectangle object that specifies the locations of the four 9-slice guides. For information on the format of the
rectangle, see