298
Objects
item.getData()
Availability
Flash MX 2004.
Usage
item.getData(
name
)
Parameters
name
A string that specifies the name of the data to retrieve.
Returns
The data specified by the
name
parameter. The type of data returned depends on the type of
stored data.
Description
Method; retrieves the value of the specified data.
Example
The following example gets the value of the data named myData from the first item in the
library and stores it in the variable
libData
.
var libData = fl.getDocumentDOM().library.items[0].getData( "myData" );
item.hasData()
Availability
Flash MX 2004.
Usage
item.hasData(
name
)
Parameters
name
A string that specifies the name of the data to check for in the library item.
Returns
A Boolean value:
true
if the specified data exists;
false
otherwise.
Description
Method; determines whether the library item has the named data.
Summary of Contents for FLASH 8-EXTENDING FLASH
Page 1: ...Extending Flash...
Page 38: ...38 Top Level Functions and Methods...
Page 532: ...532 Objects...
Page 554: ...554 C Level Extensibility...