Posted By

forchid on 05/13/09


Tagged

image library script flash compression smoothing jsfl


Versions (?)

Who likes this?

7 people have marked this snippet as a favorite

szoftverhiba
flashinit
dpollen
toxin20
KDR
TrentSkunk
zoo


Script to Control Smoothing for ALL library assets in Flash IDE


 / Published in: ActionScript 3
 

  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  

You need to login to post a comment.