Extending Flash |
|
|
|
| Objects > Item object > item.hasData() | |||
Flash MX 2004.
item.hasData(name)
name A string that specifies the name of the data to check for in the library item.
A Boolean value: true if the specified data exists; false otherwise.
Method; determines whether the library item has the named data.
The following example shows a message in the Output panel if the first item in the library contains data point named myData:
if (fl.getDocumentDOM().library.items[0].hasData("myData")){
fl.trace("Yep, it's there!");
}
|
|
|
|