Flash MX 2004.
Library.renameItem(name)
stringSpecifies a new name for the library item.
true if the name of the item changes successfully, false otherwise. If multiple items are selected, no names are changed, and the return value is false (to match user interface behavior).
booleanMethod; Renames the currently selected library item in the Library panel.
The following example renames the currently selected library item to new name:
fl.getDocumentDOM().library.renameItem("new name");