Library.finditemindex(); Library.getitemproperty() - MACROMEDIA FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY Manual

Flash javascript dictionary
Hide thumbs Also See for FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY:
Table of Contents

Advertisement

library.findItemIndex()

Availability
Flash MX 2004.
Usage
library.findItemIndex( namePath )
Parameters
A string that specifies the name of the item. If the item is in a folder, you can specify
namePath
its name and path using slash notation.
Returns
An integer value representing the item's zero-based index value.
Description
Method; returns the library item's index value (zero-based). The library index is flat, so folders are
considered part of the main index. Folder paths can be used to specify a nested item.
Example
The following example stores the zero-based index value of the library item square, which is in the
test folder, in the variable
var sqIndex = fl.getDocumentDOM().library.findItemIndex("test/square");
alert(sqIndex);

library.getItemProperty()

Availability
Flash MX 2004.
Usage
library.getItemProperty( property )
Parameters
A string. For a list of values that you can use as a
property
Property summary for the Item
Returns
A string value for the property.
Description
Method; gets the property for the selected item.
Example
The following example shows a dialog box that contains the Linkage Identifier value for the
symbol when referencing it using ActionScript or for runtime sharing:
alert(fl.getDocumentDOM().library.getItemProperty("linkageIdentifier"));
218
Chapter 3: Objects
, and then displays the index value in a dialog box:
sqIndex
object, along with property summaries for its subclasses.
parameter, see the
property

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents