MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 298

Extending flash
Table of Contents

Advertisement

item.getData()
Availability
Flash MX 2004.
Usage
item.getData( name )
Parameters
A string that specifies the name of the data to retrieve.
name
Returns
The data specified by the
parameter. The type of data returned depends on the type of
name
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
A string that specifies the name of the data to check for in the library item.
name
Returns
A Boolean value:
if the specified data exists;
otherwise.
true
false
Description
Method; determines whether the library item has the named data.
298
Objects

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents