![MACROMEDIA FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY Manual Download Page 219](http://html1.mh-extra.com/html/macromedia/flash-mx-2004-flash-javascript-dictionary/flash-mx-2004-flash-javascript-dictionary_manual_3377988219.webp)
library object
219
library.getItemType()
Availability
Flash MX 2004.
Usage
library.getItemType( [
namePath
] )
Parameters
namePath
A string that specifies the name of the item. If the item is in a folder, specify its name
and path using slash notation. If
namePath
is not specified, Flash provides the type of the current
selection. If more than one item is currently selected and no
namePath
is provided, Flash ignores
the command. This parameter is optional.
Returns
A string value specifying the type of object. Possible values include:
"undefined"
,
"component"
,
"movie clip"
,
"graphic"
,
"button"
,
"video"
,
"folder"
,
"font"
,
"sound"
,
"bitmap"
, and
"compiled clip"
.
Description
Method; gets the type of object currently selected or specified by a library path.
Example
The following example shows a dialog box that contains the item type of Symbol_1 located in the
Folder_1/Folder_2 folder:
alert(fl.getDocumentDOM.library.getItemType("Folder_1/Folder_2/Symbol_1"));
library.getSelectedItems()
Availability
Flash MX 2004.
Parameters
None.
Returns
An array of values for all currently selected items in the library.
Description
Method; gets the array of all currently selected items in the library.
Example
The following example stores the array of currently selected library items (in this case, several
audio files) in the
selItems
variable and then changes the
sampleRate
property of the first
audio file in the array to
"11 kHz"
:
Summary of Contents for FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY
Page 1: ...Flash JavaScript Dictionary ...
Page 16: ...16 Contents ...
Page 40: ...40 Chapter 2 Top level functions ...
Page 368: ...368 Chapter 3 Objects ...