Flash MX 2004.
item.addData(name, type, data)
name A string that specifies the name of the data. type A string that specifies the type of data. Valid types are "integer", "integerArray", "double", "doubleArray", "string", and "byteArray". data The data to add to the specified library item. The type of data depends on the value of the type parameter. For example, if type is "integer", the value of data must be an integer, and so on.
Nothing.
Method; adds specified data to a library item.
The following example adds data named myData with an integer value of 12 to the first item in the library:
fl.getDocumentDOM().library.items[0].addData("myData", "integer", 12);