I had a project recently that was originally developed as a CDROM by a 3rd party, but then had to be migrated to the web. Many of the lib items (1000's of items) had been set with specific compression values or Lossless. This ended up with a >60MB swf file. Ick.
So I brewed up this little JSFL that sets all bitmaps in the library to document level "photo"/jpeg compression. Hope this helps anyone who has or will have a similar headache. //---------------------------------------------- var lib = fl.getDocumentDOM().library; for(n=0;n<lib.items.length;n++){ var item=lib.items[n]; if(item.itemType=="bitmap"){ lib.selectItem(item.name); lib.setItemProperty('compressionType', 'photo'); fl.outputPanel.trace("SET COMPRESSION TO PHOTO ON:"+item.name); } } //---------------------------------------------- _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com