beautypg.com

Symbolitem.sourceautoupdate, Symbolitem.sourcefilepath – Adobe Extending Flash Professional CS5 User Manual

Page 454

background image

432

EXTENDING FLASH PROFESSIONAL

SymbolItem object

Last updated 5/2/2011

Example
The following example specifies the locations of the 9-slice guides:

fl.getDocumentDOM().library.items[0].scalingGridRect = {left:338, top:237, right:3859,

bottom:713};

See also

symbolItem.scalingGrid

symbolItem.sourceAutoUpdate

Availability
Flash MX 2004.

Usage

symbolItem.sourceAutoUpdate

Description
Property; a Boolean value that specifies whether the item is updated when the FLA file is published. The default value
is

false

. Used for shared library symbols.

Example
The following example sets the

sourceAutoUpdate

property for a library item:

fl.getDocumentDOM().library.items[0].sourceAutoUpdate = true;

symbolItem.sourceFilePath

Availability
Flash MX 2004.

Usage

symbolItem.sourceFilePath

Description
Property; a string that specifies the path for the source FLA file as a file:/// URI. The path must be an absolute path, not
a relative path. This property is used for shared library symbols.

Example
The following example shows the value of the

sourceFilePath

property in the Output panel:

fl.trace(fl.getDocumentDOM().library.items[0].sourceFilePath);

This manual is related to the following products: