Script to Control Smoothing for ALL library assets in Flash IDE


/ Published in: ActionScript 3
Save to your folder(s)



Copy this code and paste it in your HTML
  1. var libItems = fl.getDocumentDOM().library.items;
  2.  
  3. for (i = 0; i < libItems.length; i++){
  4. if(libItems[i].itemType == "bitmap"){
  5. libItems[i].allowSmoothing = true;
  6. }
  7. }
  8.  
  9. // Optional line to add into the loop if needed
  10. // libItems[i].compressionType = "photo";

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.