/* Renamer - Aaron Steed Renames all selected library items to a given name followed by a number put the jsfl and xml in: C:/Documents and Settings/user/Local Settings/Application Data/Adobe/Flash CS3/en/Configuration/Commands/ */ fl.outputPanel.clear(); var _doc = fl.getDocumentDOM(); var _lib = _doc.library; var selectionList = _lib.getSelectedItems().slice(); var result = _doc.xmlPanel(fl.configURI + "/Commands/Renamer.xml"); var start_num = Number(result.start_num); if (result.dismiss == "accept"){ for(var i in selectionList) { selectionList[i].name = result.new_name+start_num; if(selectionList[i].linkageExportForAS){ selectionList[i].linkageClassName = result.new_name+start_num; } start_num++; } }