User Guide

Item object 299
Example
The following example shows a message in the Output panel if the first item in the library
contains data point named myData:
if ( fl.getDocumentDOM().library.items[0].hasData( "myData" ) ){
fl.trace("Yep, it's there!");
}
item.itemType
Availability
Flash MX 2004.
Usage
item.itemType
Description
Read-only property; a string that specifies the type of element. The value is one of the
following:
"undefined", "component", "movie clip", "graphic", "button", "folder",
"font", "sound", "bitmap", "compiled clip", "screen", and "video". If this property is
"video", you can determine the type of video; see videoItem.videoType.
Example
The following example shows the type of the specified library item in the Output panel:
fl.trace(fl.getDocumentDOM().library.items[0].itemType);
item.linkageClassName
Availability
Flash MX 2004.
Usage
item.linkageClassName
Description
Property; a string that specifies the ActionScript 2.0 class that will be associated with the
symbol. For this property to be defined, the
item.linkageExportForAS and/or
item.linkageExportForRS properties must be set to true, and the
item.linkageImportForRS property must be set to false.