var libItems = fl.getDocumentDOM().library.items;
for (i = 0; i < libItems.length; i++){
if(libItems[i].itemType == "bitmap"){
libItems[i].allowSmoothing = true;
}
}
// Optional line to add into the loop if needed
// libItems[i].compressionType = "photo";