library.getItemType()
Availability
Flash MX 2004.
Usage
library.getItemType( [ namePath ] )
Parameters
A string that specifies the name of the item. If the item is in a folder, specify its name
namePath
and path using slash notation. If
selection. If more than one item is currently selected and no
the command. This parameter is optional.
Returns
A string value specifying the type of object. Possible values include:
,
"movie clip"
"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
audio file in the array to
namePath
,
"graphic"
"button"
.
variable and then changes the
selItems
:
"11 kHz"
is not specified, Flash provides the type of the current
,
,
,
"video"
"folder"
sampleRate
is provided, Flash ignores
namePath
,
"undefined"
"component"
,
,
"font"
"sound"
"bitmap"
property of the first
library object
,
, and
219
Need help?
Do you have a question about the FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY and is the answer not in the manual?