/* SetBaseClass - Aaron Steed Sets the base class for all selected library items in the input box you would type - "flash.display.Sprite" for example put the jsfl 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 base = prompt("Enter new base class: "); if(base != null && base.length > 0) { for(var i in selectionList ) { var class_name = selectionList[i].name.substring(selectionList[i].name.lastIndexOf("/")+1); selectionList[i].linkageExportForAS = true selectionList[i].linkageClassName = class_name; selectionList[i].linkageBaseClass = base; selectionList[i].linkageExportInFirstFrame = true; // it won't update the properties unless you rename it and rename it back selectionList[i].name = class_name+"flashisbloodyretarded"; selectionList[i].name = class_name; } }