var bitMap=fl.getDocumentDOM().getTimeline().layers [layLen_num-1].frames[0].elements[0]; fl.trace(bitMap.name); fl.getDocumentDOM().library.selectItem(bitMap.libraryItem.name); fl.getDocumentDOM().library.deleteItem();