I keep getting emails asking for code I wrote over 4 years ago. Not sure where most of that stuff is now. The most popular, however, is a JSFL script for smoothing all of your bitmaps in Flash. Here it is as text; that way, if my blog changes 4 years from now, at least it’ll be cached somewhere.
Just copy the text, paste in a new text file, save as “Smooth All Bitmaps.jsfl”. In Flash open the FLA you want to affect, choose Commands > Run Command, and choose the script file you just saved. Done.
You can copy from Pastebin, or from the below:
/* Smooth All Bitmaps Turns all bitmaps in your library to have their smoothing property on. by JesterXL jesterxl@jessewarden.com jesse.warden@gmail.com http://jessewarden.com This code is under the MIT License Copyright (c)function init() { fl.outputPanel.clear(); var item_array = fl.getDocumentDOM().library.items; var i = item_array.length; while(i--) { var item = item_array[i]; if(item.itemType == "bitmap") { item.allowSmoothing = true; fl.trace(""); fl.trace(item.name + " allowSmoothing is now true.n"); } } } // start this mug init(); Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */