beautypg.com

Symbolitem.sourcelibraryname, Symbolitem.symboltype, Symbolitem.timeline – Adobe Extending Flash Professional CS5 User Manual

Page 455

background image

433

EXTENDING FLASH PROFESSIONAL

SymbolItem object

Last updated 5/2/2011

symbolItem.sourceLibraryName

Availability
Flash MX 2004.

Usage

symbolItem.sourceLibraryName

Description
Property; a string that specifies the name of the item in the source file library. It is used for shared library symbols.

Example
The following example shows the value of the

sourceLibraryName

property in the Output panel:

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

symbolItem.symbolType

Availability
Flash MX 2004.

Usage

symbolItem.symbolType

Description
Property; a string that specifies the type of symbol. Acceptable values are

"movie clip"

,

"button"

, and

"graphic"

.

Example
The following example shows the current value of the

symbolType

property, changes it to

button

, and shows it again:

alert(fl.getDocumentDOM().library.items[0].symbolType);

fl.getDocumentDOM().library.items[0].symbolType = "button";

alert(fl.getDocumentDOM().library.items[0].symbolType);

symbolItem.timeline

Availability
Flash MX 2004.

Usage

symbolItem.timeline

This manual is related to the following products: